VTK
9.0.1
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 "
vtkObject.h
"
32
#include "vtkRenderingCoreModule.h"
// For export macro
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(
47
const
char
* attributeName,
const
char
* arrayName,
int
fieldAssociation,
int
component
);
48
55
void
AddMapping(
int
unit,
const
char
* arrayName,
int
fieldAssociation,
int
component
);
56
60
bool
RemoveMapping(
const
char
* attributeName);
61
65
void
RemoveAllMappings();
66
70
unsigned
int
GetNumberOfMappings();
71
75
const
char
* GetAttributeName(
unsigned
int
index
);
76
80
const
char
* GetArrayName(
unsigned
int
index
);
81
85
int
GetFieldAssociation(
unsigned
int
index
);
86
90
int
GetComponent(
unsigned
int
index
);
91
95
int
GetTextureUnit(
unsigned
int
index
);
96
97
protected
:
98
vtkGenericVertexAttributeMapping
();
99
~
vtkGenericVertexAttributeMapping
()
override
;
100
101
private
:
102
vtkGenericVertexAttributeMapping
(
const
vtkGenericVertexAttributeMapping
&) =
delete
;
103
void
operator=(
const
vtkGenericVertexAttributeMapping
&) =
delete
;
104
105
class
vtkInternal;
106
vtkInternal* Internal;
107
};
108
109
#endif
vtkX3D::component
@ component
Definition:
vtkX3D.h:181
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:62
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
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
@ index
Definition:
vtkX3D.h:252
vtkGenericVertexAttributeMapping
stores mapping for data arrays to generic vertex attributes.
Definition:
vtkGenericVertexAttributeMapping.h:34
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17