37 #include "vtkRenderingCoreModule.h" 60 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Position to (" << x <<
"," 61 << y <<
"," << z <<
")");
62 if ((this->Position[0] != x) || (this->Position[1] != y) || (this->Position[2] != z))
64 this->Position[0] = x;
65 this->Position[1] = y;
66 this->Position[2] = z;
74 vtkGetVectorMacro(Position,
double, 3);
75 void AddPosition(
double deltaPosition[3]);
76 void AddPosition(
double deltaX,
double deltaY,
double deltaZ);
83 virtual void SetOrigin(
double x,
double y,
double z)
85 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Origin to (" << x <<
"," 86 << y <<
"," << z <<
")");
87 if ((this->Origin[0] != x) || (this->Origin[1] != y) || (this->Origin[2] != z))
97 vtkGetVectorMacro(Origin,
double, 3);
105 virtual void SetScale(
double x,
double y,
double z)
107 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Scale to (" << x <<
"," 108 << y <<
"," << z <<
")");
109 if (this->Scale[0] != x || this->Scale[1] != y || this->Scale[2] != z)
115 this->IsIdentity = 0;
119 vtkGetVectorMacro(Scale,
double, 3);
206 void RotateX(
double);
215 void RotateY(
double);
224 void RotateZ(
double);
232 void RotateWXYZ(
double w,
double x,
double y,
double z);
239 void SetOrientation(
double x,
double y,
double z);
256 void GetOrientation(
double orentation[3]);
270 void AddOrientation(
double x,
double y,
double z);
278 void AddOrientation(
double orentation[3]);
311 virtual void ComputeMatrix();
319 this->ComputeMatrix();
328 vtkGetMacro(IsIdentity,
int);
341 double Orientation[3];
351 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.
const char * GetClassName() const
Return the class name as a string.
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
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.