28 #ifndef vtkScatterPlotMapper_h 29 #define vtkScatterPlotMapper_h 31 #include "vtkCompositePolyDataMapper2.h" 32 #include "vtkPVVTKExtensionsDefaultModule.h" 33 #include "vtkWeakPointer.h" 35 class vtkPainterPolyDataMapper;
37 class vtkScalarsToColorsPainter;
45 void PrintSelf(ostream& os, vtkIndent indent);
94 SCALE_BY_MAGNITUDE = 0,
95 SCALE_BY_COMPONENTS = 1,
104 static vtkInformationIntegerKey* FIELD_ACTIVE_COMPONENT();
114 void SetArrayByFieldName(
ArrayIndex idx,
const char* arrayName,
int fieldAssociation,
115 int component = 0,
int connection = 0);
116 void SetArrayByFieldIndex(
117 ArrayIndex idx,
int fiedIndex,
int fieldAssociation,
int component = 0,
int connection = 0);
140 void SetArrayByFieldType(
ArrayIndex idx,
int fieldAttributeType,
int fieldAssociation,
141 int component = 0,
int connection = 0);
143 void SetArrayByPointCoord(
ArrayIndex idx,
int component = 0,
int connection = 0);
144 void SetArrayByName(
ArrayIndex idx,
const char* arrayName);
145 void SetXCoordsArray(
const char* arrayName) { this->SetArrayByName(X_COORDS, arrayName); }
146 void SetYCoordsArray(
const char* arrayName) { this->SetArrayByName(Y_COORDS, arrayName); }
147 void SetZCoordsArray(
const char* arrayName) { this->SetArrayByName(Z_COORDS, arrayName); }
148 void SetColorArray(
const char* arrayName) { this->SetArrayByName(COLOR, arrayName); }
151 this->SetArrayByName(GLYPH_X_SCALE, arrayName);
155 this->SetArrayByName(GLYPH_Y_SCALE, arrayName);
159 this->SetArrayByName(GLYPH_Z_SCALE, arrayName);
164 this->SetArrayByName(GLYPH_X_ORIENTATION, arrayName);
168 this->SetArrayByName(GLYPH_Y_ORIENTATION, arrayName);
172 this->SetArrayByName(GLYPH_Z_ORIENTATION, arrayName);
176 vtkDataArray* GetArray(
ArrayIndex idx, vtkDataSet* input);
194 vtkSetMacro(ThreeDMode,
bool);
195 vtkGetMacro(ThreeDMode,
bool);
196 vtkBooleanMacro(ThreeDMode,
bool);
205 vtkSetMacro(Colorize,
bool);
206 vtkGetMacro(Colorize,
bool);
207 vtkBooleanMacro(Colorize,
bool);
217 vtkSetMacro(GlyphMode,
int);
218 vtkGetMacro(GlyphMode,
int);
227 vtkSetMacro(ScalingArrayMode,
int);
228 vtkGetMacro(ScalingArrayMode,
int);
236 vtkSetMacro(ScaleMode,
int);
237 vtkGetMacro(ScaleMode,
int);
245 vtkSetMacro(ScaleFactor,
double);
246 vtkGetMacro(ScaleFactor,
double);
249 vtkSetMacro(OrientationMode,
int);
250 vtkGetMacro(OrientationMode,
int);
261 vtkSetMacro(NestedDisplayLists,
bool);
262 vtkGetMacro(NestedDisplayLists,
bool);
263 vtkBooleanMacro(NestedDisplayLists,
bool);
271 vtkSetMacro(ParallelToCamera,
bool);
272 vtkGetMacro(ParallelToCamera,
bool);
273 vtkBooleanMacro(ParallelToCamera,
bool);
282 void SetGlyphSourceConnection(
int id, vtkAlgorithmOutput* algOutput);
285 this->SetGlyphSourceConnection(0, algOutput);
293 void AddGlyphSourceConnection(vtkAlgorithmOutput* algOutput);
294 vtkPolyData* GetGlyphSource(
int id = 0);
301 virtual void Render(vtkRenderer* renderer, vtkActor* actor);
310 virtual void ReportReferences(vtkGarbageCollector* collector);
312 virtual int FillInputPortInformation(
int port, vtkInformation* info);
333 void CopyInformationToSubMapper(vtkPainterPolyDataMapper* mapper);
335 virtual void PrepareForRendering(vtkRenderer* renderer, vtkActor* actor);
336 void InitGlyphMappers(vtkRenderer* renderer, vtkActor* actor,
bool createDisplayList =
true);
337 void GenerateDefaultGlyphs();
338 virtual void ComputeBounds();
339 virtual void UpdatePainterInformation();
GlyphDrawingMode
Flags to control how the glyphs are displayed.
void SetGlyphSourceArray(const char *arrayName)
void SetGlyphXOrientationArray(const char *arrayName)
void SetXCoordsArray(const char *arrayName)
void SetGlyphYScalingArray(const char *arrayName)
void SetGlyphZOrientationArray(const char *arrayName)
void SetGlyphSourceConnection(vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
void SetZCoordsArray(const char *arrayName)
void SetGlyphZScalingArray(const char *arrayName)
void SetGlyphXScalingArray(const char *arrayName)
void SetGlyphYOrientationArray(const char *arrayName)
Display a vtkDataSet with flexibility.
void SetColorArray(const char *arrayName)
void SetYCoordsArray(const char *arrayName)