24 #ifndef vtkBatchedLabeledDataMapper_h
25 #define vtkBatchedLabeledDataMapper_h
28 #include "vtkRenderingLabelModule.h"
33 VTK_ABI_NAMESPACE_BEGIN
42 VTK_ABI_NAMESPACE_BEGIN
59 static constexpr
int MaxTextProperties = 128;
60 static constexpr
int GlyphAtlasPadding = 5;
61 static constexpr
int GlyphAtlasColumnSize = 10;
79 vtkSetStringMacro(FrameColorsName);
80 vtkGetStringMacro(FrameColorsName);
105 vtkSetClampMacro(TextAnchor,
int, LowerLeft, Center);
106 vtkGetMacro(TextAnchor,
int);
115 vtkSetVector2Macro(DisplayOffset,
int);
116 vtkGetVector2Macro(DisplayOffset,
int);
151 void MakeShaderArrays(
int numCurLabels,
const std::vector<std::string>&,
vtkIntArray*,
163 virtual void ActivateGlyphTexture();
164 virtual void DeactivateGlyphTexture();
174 const float* GetBackgroundColors()
const;
175 const int* GetFrameWidths()
const;
176 const int* GetMaxGlyphHeights()
const;
177 const int* GetDescenders()
const;
184 void UpdateRenderWindowDPI(
int dpi);
191 int DisplayOffset[2] = { 0, 0 };
193 char* FrameColorsName =
nullptr;
196 std::unique_ptr<vtkInternals> Impl;
198 struct vtkBatchedLabeledDataMapperFormatter;
200 VTK_ABI_NAMESPACE_END
TextAnchorTypes
Anchor option for labels.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
draw text labels at dataset points using batch rendering
void SetLabelTextProperty(vtkTextProperty *p) override
Set/Get the text property.
static vtkLabeledDataMapper * New()
Instantiate object with {:<#6.3g} label format.
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
abstract class to specify dataset behavior
vtkTextProperty * GetLabelTextProperty() override
Set/Get the text property.
a actor that draws 2D data
void RenderOpaqueGeometry(vtkViewport *, vtkActor2D *) override
No-op: backend subclasses override this to drive the render pipeline.
dynamic, self-adjusting array of float
concrete dataset represents vertices, lines, polygons, and triangle strips
draw text labels at dataset points
window superclass for vtkRenderWindow
dynamic, self-adjusting array of int
#define VTK_MARSHALMANUAL
virtual void BuildLabels()
a simple class to control print indentation
topologically and geometrically regular array of data
void RenderOverlay(vtkViewport *, vtkActor2D *) override
No-op: all label drawing happens in RenderOpaqueGeometry.
virtual void BuildLabelsInternal(vtkDataSet *)
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
represent text properties.
virtual vtkTextProperty * GetLabelTextProperty()
Set/Get the text property.
vtkMTimeType GetMTime() override
Return the modified time for this object.
virtual void AllocateLabels(int numLabels)
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.