VTK
dox
Rendering
Core
vtkGenericVertexAttributeMapping.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGenericVertexAttributeMapping.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
28
#ifndef vtkGenericVertexAttributeMapping_h
29
#define vtkGenericVertexAttributeMapping_h
30
31
#include "vtkRenderingCoreModule.h"
// For export macro
32
#include "
vtkObject.h
"
33
34
class
VTKRENDERINGCORE_EXPORT
vtkGenericVertexAttributeMapping
:
public
vtkObject
35
{
36
public
:
37
static
vtkGenericVertexAttributeMapping
*
New
();
38
vtkTypeMacro(
vtkGenericVertexAttributeMapping
,
vtkObject
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
40
46
void
AddMapping(
const
char
* attributeName,
const
char
* arrayName,
47
int
fieldAssociation,
int
component
);
48
55
void
AddMapping(
56
int
unit,
const
char
* arrayName,
int
fieldAssociation,
57
int
component
);
58
62
bool
RemoveMapping(
const
char
* attributeName);
63
67
void
RemoveAllMappings();
68
72
unsigned
int
GetNumberOfMappings();
73
77
const
char
* GetAttributeName(
unsigned
int
index
);
78
82
const
char
* GetArrayName(
unsigned
int
index
);
83
87
int
GetFieldAssociation(
unsigned
int
index
);
88
92
int
GetComponent(
unsigned
int
index
);
93
97
int
GetTextureUnit(
unsigned
int
index
);
98
99
protected
:
100
vtkGenericVertexAttributeMapping
();
101
~
vtkGenericVertexAttributeMapping
()
override
;
102
103
private
:
104
vtkGenericVertexAttributeMapping
(
const
vtkGenericVertexAttributeMapping
&) =
delete
;
105
void
operator=(
const
vtkGenericVertexAttributeMapping
&) =
delete
;
106
107
class
vtkInternal;
108
vtkInternal* Internal;
109
110
};
111
112
#endif
113
114
vtkX3D::component
Definition:
vtkX3D.h:175
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkX3D::index
Definition:
vtkX3D.h:246
vtkGenericVertexAttributeMapping
stores mapping for data arrays to generic vertex attributes.
Definition:
vtkGenericVertexAttributeMapping.h:34
Generated by
1.8.16