21#ifndef vtkFastLabeledDataMapper_h
22#define vtkFastLabeledDataMapper_h
26#include "vtkRenderingOpenGL2Module.h"
31VTK_ABI_NAMESPACE_BEGIN
40VTK_ABI_NAMESPACE_BEGIN
62 vtkSetStringMacro(LabelFormat);
63 vtkGetStringMacro(LabelFormat);
74 vtkSetMacro(LabeledComponent,
int);
75 vtkGetMacro(LabeledComponent,
int);
82 vtkSetMacro(ComponentSeparator,
char);
83 vtkGetMacro(ComponentSeparator,
char);
93 vtkGetMacro(FieldDataArray,
int);
102 vtkSetStringMacro(FieldDataName)
103 vtkGetStringMacro(FieldDataName);
113 vtkSetMacro(LabelMode,
int);
114 vtkGetMacro(LabelMode,
int);
141 vtkSetStringMacro(FrameColorsName);
142 vtkGetStringMacro(FrameColorsName);
246 char* LabelFormat =
nullptr;
248 int LabeledComponent = -1;
249 int FieldDataArray = 0;
250 char* FieldDataName =
nullptr;
251 char ComponentSeparator =
' ';
255 int NumberOfLabelsAllocated = 0;
260 char* FrameColorsName =
nullptr;
represents an object (geometry & properties) in a rendered scene
general representation of visualization data
abstract class to specify dataset behavior
draw text labels at dataset points
static vtkFastLabeledDataMapper * New()
void ReleaseGraphicsResources(vtkWindow *) override
Overridden to release internal textureobject.
void SetLabelModeToLabelFieldData()
void SetLabelModeToLabelScalars()
~vtkFastLabeledDataMapper() override
vtkMTimeType GetMTime() override
Overridden to take into account LabelTextProperty's mtime.
TextAnchor
Anchor option for labels.
@ LowerRight
Uses the lower right corner.
@ UpperEdge
Uses the upper edge center.
@ LowerEdge
Uses the lower edge center.
@ RightEdge
Uses the right edge center.
@ LeftEdge
Uses the left edge center.
@ Center
Uses the exact center.
@ UpperRight
Uses the upper right corner.
@ UpperLeft
Uses the upper left corner.
void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Overridden to set up uniforms for the shaders.
void SetLabelModeToLabelVectors()
std::unique_ptr< vtkInternals > Implementation
void MakeupShaders(vtkOpenGLShaderProperty *sp)
void SetLabelModeToLabelTCoords()
int FillInputPortInformation(int, vtkInformation *) override
Overridden to declare support for any vtkDataSet, not just vtkPolyData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetInputData(vtkDataSet *)
Set the input dataset to the mapper.
void BuildShaders(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Build the shader source code, called by UpdateShader.
void RenderPieceStart(vtkRenderer *ren, vtkActor *act) override
Overridden to setup textureobject.
virtual vtkTextProperty * GetLabelTextProperty()
void BuildLabelsInternal(vtkDataSet *)
void SetLabelModeToLabelNormals()
void AllocateLabels(int numLabels)
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.
void RenderPieceFinish(vtkRenderer *ren, vtkActor *act) override
Overridden to teardown textureobject.
vtkDataSet * GetInput()
Uses GetInputDataObject() to get the input data set.
vtkFastLabeledDataMapper()
void SetLabelModeToLabelTensors()
void RenderPiece(vtkRenderer *ren, vtkActor *act) override
Overridden to rebuild labels if necessary.
virtual vtkTextProperty * GetLabelTextProperty(int type)
void MakeShaderArrays(int numCurLabels, const std::vector< std::string > &, vtkIntArray *, vtkFloatArray *)
virtual void SetLabelTextProperty(vtkTextProperty *p, int type)
dynamic, self-adjusting array of float
a simple class to control print indentation
dynamic, self-adjusting array of int
PolyDataMapper using OpenGL to render.
represent GPU shader properties
abstract specification for renderers
represent text properties.
window superclass for vtkRenderWindow
#define VTK_LABEL_TENSORS
#define VTK_LABEL_TCOORDS
#define VTK_LABEL_VECTORS
#define VTK_LABEL_SCALARS
#define VTK_LABEL_FIELD_DATA
#define VTK_LABEL_NORMALS
vtkTypeUInt32 vtkMTimeType