21 #ifndef vtkFastLabeledDataMapper_h
22 #define vtkFastLabeledDataMapper_h
27 #include "vtkRenderingOpenGL2Module.h"
32 VTK_ABI_NAMESPACE_BEGIN
41 VTK_ABI_NAMESPACE_BEGIN
62 void SetLabelFormat(
const char* format);
63 vtkGetStringMacro(LabelFormat);
74 vtkSetMacro(LabeledComponent,
int);
75 vtkGetMacro(LabeledComponent,
int);
82 vtkSetMacro(ComponentSeparator,
char);
83 vtkGetMacro(ComponentSeparator,
char);
92 vtkSetClampMacro(FieldDataArray,
int, 0,
VTK_INT_MAX);
93 vtkGetMacro(FieldDataArray,
int);
102 vtkSetStringMacro(FieldDataName)
103 vtkGetStringMacro(FieldDataName);
113 vtkSetMacro(LabelMode,
int);
114 vtkGetMacro(LabelMode,
int);
141 vtkSetStringMacro(FrameColorsName);
142 vtkGetStringMacro(FrameColorsName);
167 vtkSetMacro(TextAnchor,
int);
168 vtkGetMacro(TextAnchor,
int);
231 void AllocateLabels(
int numLabels);
234 void MakeShaderArrays(
239 char* LabelFormat =
nullptr;
241 int LabeledComponent = -1;
242 int FieldDataArray = 0;
243 char* FieldDataName =
nullptr;
244 char ComponentSeparator =
' ';
248 int NumberOfLabelsAllocated = 0;
253 char* FrameColorsName =
nullptr;
259 struct vtkFastLabeledDataMapperFunctor;
265 VTK_ABI_NAMESPACE_END
PolyDataMapper using OpenGL to render.
represents an object (geometry & properties) in a rendered scene
virtual void RenderPieceFinish(vtkRenderer *ren, vtkActor *act)
Implemented by sub classes.
draw text labels at dataset points using batch rendering
Uses the upper left corner.
static vtkOpenGLPolyDataMapper * New()
TextAnchor
Anchor option for labels.
std::unique_ptr< vtkInternals > Implementation
Uses the lower right corner.
void SetInputData(vtkPolyData *in)
Specify the input data to map.
vtkTypeUInt32 vtkMTimeType
abstract class to specify dataset behavior
Uses the upper edge center.
dynamic, self-adjusting array of float
abstract specification for renderers
Uses the right edge center.
represent GPU shader properties
#define VTK_LABEL_TCOORDS
void SetLabelModeToLabelFieldData()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
void SetLabelModeToLabelNormals()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
#define VTK_LABEL_NORMALS
window superclass for vtkRenderWindow
dynamic, self-adjusting array of int
Uses the upper right corner.
#define VTK_LABEL_TENSORS
#define VTK_LABEL_SCALARS
a simple class to control print indentation
#define VTK_LABEL_FIELD_DATA
virtual vtkTextProperty * GetLabelTextProperty()
Set/Get the text property.
void RenderPiece(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
void SetLabelModeToLabelVectors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
void SetLabelModeToLabelTCoords()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
vtkMTimeType GetMTime() override
Overload standard modified time function.
virtual void BuildShaders(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Build the shader source code, called by UpdateShader.
represent text properties.
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
#define VTK_LABEL_VECTORS
virtual void RenderPieceStart(vtkRenderer *ren, vtkActor *act)
Implemented by sub classes.
draw text labels at dataset points
Uses the left edge center.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
general representation of visualization data
void SetLabelModeToLabelScalars()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.
void SetLabelModeToLabelTensors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
#define VTK_DEPRECATED_IN_9_7_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Uses the lower edge center.