28 #ifndef vtkGeometryRepresentation_h 29 #define vtkGeometryRepresentation_h 31 #include "vtkPVClientServerCoreRenderingModule.h" 33 #include "vtkProperty.h" 35 class vtkCompositeDataDisplayAttributes;
36 class vtkCompositePolyDataMapper2;
38 class vtkPiecewiseFunction;
42 class vtkQuadricClustering;
43 class vtkScalarsToColors;
52 void PrintSelf(ostream& os, vtkIndent indent);
61 vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
82 void SetBlockColorsDistinctValues(
int distinctValues);
83 int GetBlockColorsDistinctValues();
99 vtkSetMacro(Ambient,
double);
100 vtkSetMacro(Diffuse,
double);
101 vtkSetMacro(Specular,
double);
102 vtkGetMacro(Ambient,
double);
103 vtkGetMacro(Diffuse,
double);
104 vtkGetMacro(Specular,
double);
110 WIREFRAME = VTK_WIREFRAME,
111 SURFACE = VTK_SURFACE,
112 SURFACE_WITH_EDGES = 3
120 vtkSetClampMacro(Representation,
int, POINTS, SURFACE_WITH_EDGES);
121 vtkGetMacro(Representation,
int);
128 virtual void SetRepresentation(
const char*);
139 static bool DoRequestGhostCells(vtkInformation* information);
147 vtkSetMacro(RequestGhostCellsIfNeeded,
bool);
148 vtkGetMacro(RequestGhostCellsIfNeeded,
bool);
149 vtkBooleanMacro(RequestGhostCellsIfNeeded,
bool);
154 virtual void SetUseOutline(
int);
155 void SetTriangulate(
int);
156 void SetNonlinearSubdivisionLevel(
int);
160 virtual void SetAmbientColor(
double r,
double g,
double b);
161 virtual void SetColor(
double r,
double g,
double b);
162 virtual void SetDiffuseColor(
double r,
double g,
double b);
163 virtual void SetEdgeColor(
double r,
double g,
double b);
164 virtual void SetInterpolation(
int val);
165 virtual void SetLineWidth(
double val);
166 virtual void SetOpacity(
double val);
167 virtual void SetPointSize(
double val);
168 virtual void SetSpecularColor(
double r,
double g,
double b);
169 virtual void SetSpecularPower(
double val);
173 virtual void SetOrientation(
double,
double,
double);
174 virtual void SetOrigin(
double,
double,
double);
175 virtual void SetPickable(
int val);
176 virtual void SetPosition(
double,
double,
double);
177 virtual void SetScale(
double,
double,
double);
178 virtual void SetTexture(vtkTexture*);
179 virtual void SetUserTransform(
const double[16]);
183 virtual void SetInterpolateScalarsBeforeMapping(
int val);
184 virtual void SetLookupTable(vtkScalarsToColors* val);
193 virtual void SetMapScalars(
int val);
194 virtual void SetStatic(
int val);
206 virtual void SetBlockVisibility(
unsigned int index,
bool visible);
207 virtual bool GetBlockVisibility(
unsigned int index)
const;
208 virtual void RemoveBlockVisibility(
unsigned int index,
bool =
true);
209 virtual void RemoveBlockVisibilities();
216 virtual void SetBlockColor(
unsigned int index,
double r,
double g,
double b);
217 virtual void SetBlockColor(
unsigned int index,
double* color);
218 virtual double* GetBlockColor(
unsigned int index);
219 virtual void RemoveBlockColor(
unsigned int index);
220 virtual void RemoveBlockColors();
227 virtual void SetBlockOpacity(
unsigned int index,
double opacity);
228 virtual void SetBlockOpacity(
unsigned int index,
double* opacity);
229 virtual double GetBlockOpacity(
unsigned int index);
230 virtual void RemoveBlockOpacity(
unsigned int index);
231 virtual void RemoveBlockOpacities();
237 const char* GetColorArrayName();
246 static bool GetBounds(
247 vtkDataObject* dataObject,
double bounds[6], vtkCompositeDataDisplayAttributes* cdAttributes);
254 virtual void SetEnableScaling(
int v);
255 virtual void SetScalingArrayName(
const char*);
256 virtual void SetScalingFunction(vtkPiecewiseFunction* pwf);
266 vtkSetMacro(UseDataPartitions,
bool);
267 vtkGetMacro(UseDataPartitions,
bool);
280 virtual void SetupDefaults();
285 virtual int FillInputPortInformation(
int port, vtkInformation* info);
297 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
302 virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
303 vtkInformationVector* outputVector);
308 VTK_LEGACY(
virtual bool GenerateMetaData(vtkInformation*, vtkInformation*));
327 virtual void UpdateColoringParameters();
337 virtual bool IsCached(
double cache_key);
356 double DataBounds[6];
358 vtkPiecewiseFunction*
PWF;
368 vtkSetStringMacro(DebugString);
virtual vtkDataObject * GetRenderedDataObject(int vtkNotUsed(port))
Returns the data object that is rendered from the given input port.
void PrintSelf(ostream &os, vtkIndent indent)
vtkAlgorithm * MultiBlockMaker
vtkQuadricClustering * Decimator
virtual vtkPVLODActor * GetRenderedProp()
Used in ConvertSelection to locate the prop used for actual rendering.
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual bool IsCached(double cache_key)
Subclasses should override this method when they support caching to indicate if the particular key is...
vtkPVLODActor * GetActor()
Provides access to the actor used by this representation.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPVCacheKeeper * CacheKeeper
Geometry filter that does outlines for volumes.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
representation for showing any datasets as external shell of polygons.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkPVGeometryFilter * LODOutlineFilter
bool RequestGhostCellsIfNeeded
virtual void MarkModified()
This is one of the most important functions.
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
vtkAlgorithm * GeometryFilter
vtkPiecewiseFunction * PWF
manages data cache for flip book animations.
an actor that supports multiple levels of detail
vtkSelectionRepresentation is a representation to show the extracted cells.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.
virtual void SetSuppressLOD(bool suppress)
Enable/Disable LOD;.