22 #ifndef vtkRulerSourceRepresentation_h 23 #define vtkRulerSourceRepresentation_h 26 #include "vtkPVClientServerCoreRenderingModule.h" 29 class vtkDistanceRepresentation2D;
33 class vtkTextProperty;
41 void PrintSelf(ostream& os, vtkIndent indent);
47 void SetDistanceRepresentation(vtkDistanceRepresentation2D*);
48 vtkGetObjectMacro(DistanceRepresentation, vtkDistanceRepresentation2D);
54 void SetTextProperty(vtkTextProperty* prop);
59 void SetAxisLineWidth(
float width);
64 void SetAxisColor(
double red,
double green,
double blue);
78 void SetLabelFormat(
char* labelFormat);
88 void SetRulerMode(
int choice);
98 void SetRulerDistance(
double distance);
99 double GetRulerDistance();
108 void SetScale(
double distance);
117 void SetNumberOfRulerTicks(
int numberOfRulerTicks);
126 vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
132 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
137 virtual int FillInputPortInformation(
int port, vtkInformation* info);
156 virtual bool IsCached(
double cache_key);
vtkNew< vtkPVCacheKeeper > CacheKeeper
void PrintSelf(ostream &os, vtkIndent indent)
vtkNew< vtkPolyData > Clone
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...
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkDistanceRepresentation2D * DistanceRepresentation
virtual void MarkModified()
This is one of the most important functions.
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
manages data cache for flip book animations.
vtkRulerSourceRepresentation is a representation to show a ruler.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.