30#ifndef vtkIconGlyphFilter_h
31#define vtkIconGlyphFilter_h
33#include "vtkFiltersGeneralModule.h"
36#define VTK_ICON_GRAVITY_TOP_RIGHT 1
37#define VTK_ICON_GRAVITY_TOP_CENTER 2
38#define VTK_ICON_GRAVITY_TOP_LEFT 3
39#define VTK_ICON_GRAVITY_CENTER_RIGHT 4
40#define VTK_ICON_GRAVITY_CENTER_CENTER 5
41#define VTK_ICON_GRAVITY_CENTER_LEFT 6
42#define VTK_ICON_GRAVITY_BOTTOM_RIGHT 7
43#define VTK_ICON_GRAVITY_BOTTOM_CENTER 8
44#define VTK_ICON_GRAVITY_BOTTOM_LEFT 9
46#define VTK_ICON_SCALING_OFF 0
47#define VTK_ICON_SCALING_USE_SCALING_ARRAY 1
49VTK_ABI_NAMESPACE_BEGIN
66 vtkSetVector2Macro(IconSize,
int);
67 vtkGetVectorMacro(IconSize,
int, 2);
74 vtkSetVector2Macro(IconSheetSize,
int);
75 vtkGetVectorMacro(IconSheetSize,
int, 2);
86 vtkSetVector2Macro(DisplaySize,
int);
87 vtkGetVectorMacro(DisplaySize,
int, 2);
95 vtkSetMacro(UseIconSize,
bool);
96 vtkGetMacro(UseIconSize,
bool);
97 vtkBooleanMacro(UseIconSize,
bool);
106 vtkSetMacro(IconScaling,
int);
107 vtkGetMacro(IconScaling,
int);
119 vtkSetMacro(PassScalars,
bool);
120 vtkGetMacro(PassScalars,
bool);
121 vtkBooleanMacro(PassScalars,
bool);
130 vtkSetMacro(Gravity,
int);
131 vtkGetMacro(Gravity,
int);
148 vtkSetVector2Macro(Offset,
int);
149 vtkGetVectorMacro(Offset,
int, 2);
159 int IconSheetSize[2];
172 void IconConvertIndex(
int id,
int& j,
int& k);
175inline void vtkIconGlyphFilter::IconConvertIndex(
int id,
int& j,
int& k)
180 j =
id - dimX *
static_cast<int>(
id / dimX);
181 k = dimY -
static_cast<int>(
id / dimX) - 1;
Filter that generates a polydata consisting of quads with texture coordinates referring to a set of i...
void SetGravityToCenterLeft()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetIconScalingToScalingArray()
Specify how to specify individual icons.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
~vtkIconGlyphFilter() override
void SetGravityToTopLeft()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetGravityToTopCenter()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetGravityToCenterCenter()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetGravityToCenterRight()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetGravityToBottomRight()
Specify if the input points define the center of the icon quad or one of top right corner,...
static vtkIconGlyphFilter * New()
Standard VTK methods.
void SetGravityToBottomCenter()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetIconScalingToScalingOff()
Specify how to specify individual icons.
void SetGravityToTopRight()
Specify if the input points define the center of the icon quad or one of top right corner,...
void SetGravityToBottomLeft()
Specify if the input points define the center of the icon quad or one of top right corner,...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
#define VTK_ICON_GRAVITY_BOTTOM_RIGHT
#define VTK_ICON_GRAVITY_CENTER_LEFT
#define VTK_ICON_SCALING_USE_SCALING_ARRAY
#define VTK_ICON_GRAVITY_TOP_RIGHT
#define VTK_ICON_GRAVITY_BOTTOM_LEFT
#define VTK_ICON_GRAVITY_TOP_LEFT
#define VTK_ICON_GRAVITY_BOTTOM_CENTER
#define VTK_ICON_GRAVITY_CENTER_CENTER
#define VTK_ICON_GRAVITY_TOP_CENTER
#define VTK_ICON_GRAVITY_CENTER_RIGHT
#define VTK_ICON_SCALING_OFF