39 #include "vtkRenderingCoreModule.h" 64 "): setting Position to (" << x <<
"," << y <<
"," <<
66 if ((this->Position[0] != x)||
67 (this->Position[1] != y)||
68 (this->Position[2] != z))
70 this->Position[0] = x;
71 this->Position[1] = y;
72 this->Position[2] = z;
80 { this->SetPosition(pos[0], pos[1], pos[2]); }
81 vtkGetVectorMacro(Position,
double, 3);
82 void AddPosition(
double deltaPosition[3]);
83 void AddPosition(
double deltaX,
double deltaY,
double deltaZ);
90 virtual void SetOrigin(
double x,
double y,
double z)
93 "): setting Origin to (" << x <<
"," << y <<
"," <<
95 if ((this->Origin[0] != x)||
96 (this->Origin[1] != y)||
97 (this->Origin[2] != z))
103 this->IsIdentity = 0;
107 { this->SetOrigin(pos[0], pos[1], pos[2]); }
108 vtkGetVectorMacro(Origin,
double, 3);
116 virtual void SetScale(
double x,
double y,
double z)
118 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
119 "): setting Scale to (" << x <<
"," << y <<
"," <<
121 if (this->Scale[0] != x ||
122 this->Scale[1] != y ||
123 this->Scale[2] != z )
129 this->IsIdentity = 0;
133 { this->SetScale(scale[0], scale[1], scale[2]); }
134 vtkGetVectorMacro(Scale,
double, 3);
141 { this->SetScale(s, s, s); }
222 void RotateX(
double);
231 void RotateY(
double);
240 void RotateZ(
double);
248 void RotateWXYZ(
double w,
double x,
double y,
double z);
255 void SetOrientation(
double x,
double y,
double z);
272 void GetOrientation(
double orentation[3]);
286 void AddOrientation(
double x,
double y,
double z);
294 void AddOrientation(
double orentation[3]);
327 virtual void ComputeMatrix();
335 this->ComputeMatrix();
344 vtkGetMacro(IsIdentity,
int);
357 double Orientation[3];
366 void operator=(
const vtkProp3D&) =
delete;
abstract superclass for all actors, volumes and annotations
virtual vtkMatrix4x4 * GetMatrix()
represent and manipulate 4x4 transformation matrices
virtual void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp.
vtkTypeUInt32 vtkMTimeType
vtkMatrix4x4 * UserMatrix
record modification and/or execution time
void SetScale(double s)
Method to set the scale isotropically.
abstract specification for renderers
represents an 3D object for placement in a rendered scene
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
virtual void SetPosition(double x, double y, double z)
Set/Get/Add the position of the Prop3D in world coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
const char * GetClassName() const
Return the class name as a string.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
virtual void Modified()
Update the modification time for this object.
virtual void SetOrigin(double x, double y, double z)
Set/Get the origin of the Prop3D.
virtual void SetOrigin(const double pos[3])
Set/Get the origin of the Prop3D.
virtual void SetPosition(double pos[3])
#define VTK_SIZEHINT(...)
vtkLinearTransform * UserTransform
vtkMatrix4x4 * GetMatrix() override
Get a pointer to an internal vtkMatrix4x4.
virtual void PokeMatrix(vtkMatrix4x4 *vtkNotUsed(matrix))
These methods are used by subclasses to place a matrix (if any) in the prop prior to rendering...
virtual void SetScale(double scale[3])
Set/Get the scale of the actor.
virtual void InitPathTraversal()
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker).
virtual void SetScale(double x, double y, double z)
Set/Get the scale of the actor.