ParaView
|
Display a vtkDataSet with flexibility. More...
#include <vtkScatterPlotMapper.h>
Inherits vtkCompositePolyDataMapper2.
Public Types | |
enum | ArrayIndex { X_COORDS = 0, Y_COORDS, Z_COORDS, COLOR, GLYPH_X_SCALE, GLYPH_Y_SCALE, GLYPH_Z_SCALE, GLYPH_SOURCE, GLYPH_X_ORIENTATION, GLYPH_Y_ORIENTATION, GLYPH_Z_ORIENTATION, NUMBER_OF_ARRAYS } |
enum | GlyphDrawingMode { NoGlyph = 0, UseGlyph = 1, ScaledGlyph = 2, UseMultiGlyph = 4, OrientedGlyph = 8 } |
Flags to control how the glyphs are displayed. More... | |
enum | ScalingArrayModes { Xc_Yc_Zc = 0, Xc0_Xc1_Xc2 = 1, Xc_Xc_Xc = 2 } |
enum | ScaleModes { SCALE_BY_MAGNITUDE = 0, SCALE_BY_COMPONENTS = 1 } |
enum | OrientationModes { DIRECTION = 0, ROTATION = 1 } |
typedef vtkCompositePolyDataMapper2 | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetArrayByFieldType (ArrayIndex idx, int fieldAttributeType, int fieldAssociation, int component=0, int connection=0) |
Set the point attribute to use for generating the glyphs. More... | |
void | SetArrayByPointCoord (ArrayIndex idx, int component=0, int connection=0) |
void | SetArrayByName (ArrayIndex idx, const char *arrayName) |
void | SetXCoordsArray (const char *arrayName) |
void | SetYCoordsArray (const char *arrayName) |
void | SetZCoordsArray (const char *arrayName) |
void | SetColorArray (const char *arrayName) |
void | SetGlyphXScalingArray (const char *arrayName) |
void | SetGlyphYScalingArray (const char *arrayName) |
void | SetGlyphZScalingArray (const char *arrayName) |
void | SetGlyphSourceArray (const char *arrayName) |
void | SetGlyphXOrientationArray (const char *arrayName) |
void | SetGlyphYOrientationArray (const char *arrayName) |
void | SetGlyphZOrientationArray (const char *arrayName) |
vtkDataArray * | GetArray (ArrayIndex idx) |
vtkDataArray * | GetArray (ArrayIndex idx, vtkDataSet *input) |
virtual void | SetOrientationMode (int) |
virtual int | GetOrientationMode () |
void | AddGlyphSourceConnection (vtkAlgorithmOutput *algOutput) |
Specify a source object at a specified table location. More... | |
vtkPolyData * | GetGlyphSource (int id=0) |
virtual void | Render (vtkRenderer *renderer, vtkActor *actor) |
Reimplemented to allow "real" pre rendering by vtkScatterPlotPainter Indeed the vtkPainter::PrepareForRendering is not exactly a prepare for rendering (the rendering already started). More... | |
void | SetArrayByFieldName (ArrayIndex idx, const char *arrayName, int fieldAssociation, int component=0, int connection=0) |
Set the name of the point array to use as a mask for generating the glyphs. More... | |
void | SetArrayByFieldIndex (ArrayIndex idx, int fiedIndex, int fieldAssociation, int component=0, int connection=0) |
Set the name of the point array to use as a mask for generating the glyphs. More... | |
virtual void | SetThreeDMode (bool) |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D). More... | |
virtual bool | GetThreeDMode () |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D). More... | |
virtual void | ThreeDModeOn () |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D). More... | |
virtual void | ThreeDModeOff () |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D). More... | |
virtual void | SetColorize (bool) |
Enable or not the color painting at each point. More... | |
virtual bool | GetColorize () |
Enable or not the color painting at each point. More... | |
virtual void | ColorizeOn () |
Enable or not the color painting at each point. More... | |
virtual void | ColorizeOff () |
Enable or not the color painting at each point. More... | |
virtual void | SetGlyphMode (int) |
Enable or not the Glyph representation at each point. More... | |
virtual int | GetGlyphMode () |
Enable or not the Glyph representation at each point. More... | |
virtual void | SetScalingArrayMode (int) |
If the GlyphMode has ScaledGlyph turned on, ScalingArrayMode describes how to data in the different GLYPH_[X,Y,Z]_SCALE arrays. More... | |
virtual int | GetScalingArrayMode () |
If the GlyphMode has ScaledGlyph turned on, ScalingArrayMode describes how to data in the different GLYPH_[X,Y,Z]_SCALE arrays. More... | |
virtual void | SetScaleMode (int) |
If the GlyphMode has ScaledGlyph turned on, decide how to scale the glyph. More... | |
virtual int | GetScaleMode () |
If the GlyphMode has ScaledGlyph turned on, decide how to scale the glyph. More... | |
virtual void | SetScaleFactor (double) |
Specify scale factor to scale object by. More... | |
virtual double | GetScaleFactor () |
Specify scale factor to scale object by. More... | |
virtual void | SetNestedDisplayLists (bool) |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists. More... | |
virtual bool | GetNestedDisplayLists () |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists. More... | |
virtual void | NestedDisplayListsOn () |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists. More... | |
virtual void | NestedDisplayListsOff () |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists. More... | |
virtual void | SetParallelToCamera (bool) |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera. More... | |
virtual bool | GetParallelToCamera () |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera. More... | |
virtual void | ParallelToCameraOn () |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera. More... | |
virtual void | ParallelToCameraOff () |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera. More... | |
void | SetGlyphSourceConnection (int id, vtkAlgorithmOutput *algOutput) |
Specify a source object at a specified table location. More... | |
void | SetGlyphSourceConnection (vtkAlgorithmOutput *algOutput) |
Specify a source object at a specified table location. More... | |
Static Public Member Functions | |
static vtkScatterPlotMapper * | New () |
static int | IsTypeOf (const char *type) |
static vtkScatterPlotMapper * | SafeDownCast (vtkObject *o) |
static vtkInformationIntegerKey * | FIELD_ACTIVE_COMPONENT () |
Protected Member Functions | |
vtkScatterPlotMapper () | |
virtual | ~vtkScatterPlotMapper () |
virtual void | ReportReferences (vtkGarbageCollector *collector) |
Take part in garbage collection. More... | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
void | CopyInformationToSubMapper (vtkPainterPolyDataMapper *mapper) |
Send mapper ivars to sub-mapper. More... | |
virtual void | PrepareForRendering (vtkRenderer *renderer, vtkActor *actor) |
void | InitGlyphMappers (vtkRenderer *renderer, vtkActor *actor, bool createDisplayList=true) |
void | GenerateDefaultGlyphs () |
virtual void | ComputeBounds () |
virtual void | UpdatePainterInformation () |
vtkScatterPlotPainter * | GetScatterPlotPainter () |
Protected Attributes | |
bool | ThreeDMode |
bool | Colorize |
int | GlyphMode |
double | ScaleFactor |
int | ScaleMode |
int | ScalingArrayMode |
int | OrientationMode |
bool | NestedDisplayLists |
bool | ParallelToCamera |
Display a vtkDataSet with flexibility.
The mappers gives flexibility in the display of the input. By setting the arrays to process, every element of the display can be controlled. i.e. the coordinates of the points can be controlled by any field array or the color of the points can controlled by the x-axes.
The mappers gives flexibility in the display of the input. By setting the arrays to process, every element of the display can be controlled. i.e. the coordinates of the points can be controlled by any field array or the color of the points can controlled by the x-axes.
Definition at line 40 of file vtkScatterPlotMapper.h.
typedef vtkCompositePolyDataMapper2 vtkScatterPlotMapper::Superclass |
Definition at line 44 of file vtkScatterPlotMapper.h.
Enumerator | |
---|---|
X_COORDS | |
Y_COORDS | |
Z_COORDS | |
COLOR | |
GLYPH_X_SCALE | |
GLYPH_Y_SCALE | |
GLYPH_Z_SCALE | |
GLYPH_SOURCE | |
GLYPH_X_ORIENTATION | |
GLYPH_Y_ORIENTATION | |
GLYPH_Z_ORIENTATION | |
NUMBER_OF_ARRAYS |
Definition at line 47 of file vtkScatterPlotMapper.h.
Flags to control how the glyphs are displayed.
To use the default glyphs, set the GlyphMode to UseGlyph. The other flags must have their corresponding array in order to be valid. GLYPH_[XYZ]_SCALE for ScaledGlyph; GLYPH_SOURCE for UseMultiGlyph and GLYPH_[XYZ]_ORIENTATION for OrientedGlyph.
Enumerator | |
---|---|
NoGlyph | |
UseGlyph | |
ScaledGlyph | |
UseMultiGlyph | |
OrientedGlyph |
Definition at line 70 of file vtkScatterPlotMapper.h.
Enumerator | |
---|---|
Xc_Yc_Zc | |
Xc0_Xc1_Xc2 | |
Xc_Xc_Xc |
Definition at line 79 of file vtkScatterPlotMapper.h.
Enumerator | |
---|---|
SCALE_BY_MAGNITUDE | |
SCALE_BY_COMPONENTS |
Definition at line 92 of file vtkScatterPlotMapper.h.
Enumerator | |
---|---|
DIRECTION | |
ROTATION |
Definition at line 98 of file vtkScatterPlotMapper.h.
|
protected |
|
protectedvirtual |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
void vtkScatterPlotMapper::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
void vtkScatterPlotMapper::SetArrayByFieldName | ( | ArrayIndex | idx, |
const char * | arrayName, | ||
int | fieldAssociation, | ||
int | component = 0 , |
||
int | connection = 0 |
||
) |
Set the name of the point array to use as a mask for generating the glyphs.
This is a convenience method. The same effect can be achieved by using SetInputArrayToProcess(idx, 0, connection, vtkDataObject::FIELD_ASSOCIATION_POINTS, arrayName) void SetMaskArray();
void vtkScatterPlotMapper::SetArrayByFieldIndex | ( | ArrayIndex | idx, |
int | fiedIndex, | ||
int | fieldAssociation, | ||
int | component = 0 , |
||
int | connection = 0 |
||
) |
Set the name of the point array to use as a mask for generating the glyphs.
This is a convenience method. The same effect can be achieved by using SetInputArrayToProcess(idx, 0, connection, vtkDataObject::FIELD_ASSOCIATION_POINTS, arrayName) void SetMaskArray();
void vtkScatterPlotMapper::SetArrayByFieldType | ( | ArrayIndex | idx, |
int | fieldAttributeType, | ||
int | fieldAssociation, | ||
int | component = 0 , |
||
int | connection = 0 |
||
) |
Set the point attribute to use for generating the glyphs.
idx
is one of the following:
fieldAttributeType
is one of the following: This is a convenience method. This internally same effect can be achieved by using SetInputArrayToProcess(idx, 0, connection, vtkDataObject::FIELD_ASSOCIATION_POINTS, fieldAttributeType)
void vtkScatterPlotMapper::SetArrayByPointCoord | ( | ArrayIndex | idx, |
int | component = 0 , |
||
int | connection = 0 |
||
) |
void vtkScatterPlotMapper::SetArrayByName | ( | ArrayIndex | idx, |
const char * | arrayName | ||
) |
|
inline |
Definition at line 145 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 146 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 147 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 148 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 149 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 153 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 157 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 161 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 162 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 166 of file vtkScatterPlotMapper.h.
|
inline |
Definition at line 170 of file vtkScatterPlotMapper.h.
vtkDataArray* vtkScatterPlotMapper::GetArray | ( | ArrayIndex | idx | ) |
vtkDataArray* vtkScatterPlotMapper::GetArray | ( | ArrayIndex | idx, |
vtkDataSet * | input | ||
) |
|
virtual |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D).
Note: To work, the Z_Coords index array must be given.
|
virtual |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D).
Note: To work, the Z_Coords index array must be given.
|
virtual |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D).
Note: To work, the Z_Coords index array must be given.
|
virtual |
Enable or not the third (z) coordinate for 3D rendering (instead of 2D).
Note: To work, the Z_Coords index array must be given.
|
virtual |
Enable or not the color painting at each point.
Note: To work, the Color index array must be given.
|
virtual |
Enable or not the color painting at each point.
Note: To work, the Color index array must be given.
|
virtual |
Enable or not the color painting at each point.
Note: To work, the Color index array must be given.
|
virtual |
Enable or not the color painting at each point.
Note: To work, the Color index array must be given.
|
virtual |
Enable or not the Glyph representation at each point.
Note: To work, at least 1 Glyph polydata input must be set and the Glyph index array must be given.
|
virtual |
Enable or not the Glyph representation at each point.
Note: To work, at least 1 Glyph polydata input must be set and the Glyph index array must be given.
|
virtual |
If the GlyphMode has ScaledGlyph turned on, ScalingArrayMode describes how to data in the different GLYPH_[X,Y,Z]_SCALE arrays.
|
virtual |
If the GlyphMode has ScaledGlyph turned on, ScalingArrayMode describes how to data in the different GLYPH_[X,Y,Z]_SCALE arrays.
|
virtual |
If the GlyphMode has ScaledGlyph turned on, decide how to scale the glyph.
By Magnitude or components.
|
virtual |
If the GlyphMode has ScaledGlyph turned on, decide how to scale the glyph.
By Magnitude or components.
|
virtual |
Specify scale factor to scale object by.
This is used only when Scaling is On.
|
virtual |
Specify scale factor to scale object by.
This is used only when Scaling is On.
|
virtual |
|
virtual |
|
virtual |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists.
If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
|
virtual |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists.
If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
|
virtual |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists.
If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
|
virtual |
If immediate mode is off, if Glyphs are in use and if NestedDisplayLists is false, only the mappers of each glyph use display lists.
If true, in addition, matrices transforms and color per glyph are also in a parent display list. Not relevant if immediate mode is on. For debugging/profiling purpose. Initial value is true.
|
virtual |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera.
|
virtual |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera.
|
virtual |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera.
|
virtual |
When the glyphs are in 2D, it might be useful to force them to be shown parallel to the camera.
void vtkScatterPlotMapper::SetGlyphSourceConnection | ( | int | id, |
vtkAlgorithmOutput * | algOutput | ||
) |
Specify a source object at a specified table location.
New style. Source connection is stored in port 1. This method is equivalent to SetInputConnection(1, id, outputPort).
|
inline |
Specify a source object at a specified table location.
New style. Source connection is stored in port 1. This method is equivalent to SetInputConnection(1, id, outputPort).
Definition at line 283 of file vtkScatterPlotMapper.h.
void vtkScatterPlotMapper::AddGlyphSourceConnection | ( | vtkAlgorithmOutput * | algOutput | ) |
Specify a source object at a specified table location.
New style. Source connection is stored in port 1. This method is equivalent to SetInputConnection(1, id, outputPort).
vtkPolyData* vtkScatterPlotMapper::GetGlyphSource | ( | int | id = 0 | ) |
|
virtual |
Reimplemented to allow "real" pre rendering by vtkScatterPlotPainter Indeed the vtkPainter::PrepareForRendering is not exactly a prepare for rendering (the rendering already started).
|
protectedvirtual |
Take part in garbage collection.
|
protectedvirtual |
|
protected |
Send mapper ivars to sub-mapper.
|
protectedvirtual |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 343 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 344 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 345 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 347 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 348 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 349 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 350 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 351 of file vtkScatterPlotMapper.h.
|
protected |
Definition at line 352 of file vtkScatterPlotMapper.h.