41#include "vtkRenderingCoreModule.h"
66 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Position to (" << x <<
","
67 << y <<
"," << z <<
")");
82 void AddPosition(
double deltaX,
double deltaY,
double deltaZ);
89 virtual void SetOrigin(
double x,
double y,
double z)
91 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Origin to (" << x <<
","
92 << y <<
"," << z <<
")");
111 virtual void SetScale(
double x,
double y,
double z)
113 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting Scale to (" << x <<
","
114 << y <<
"," << z <<
")");
125 vtkGetVectorMacro(
Scale,
double, 3);
341 this->ComputeMatrix();
419 void operator=(
const vtkProp3D&) =
delete;
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
Allocate and hold a VTK object.
const char * GetClassName() const
Return the class name as a string.
virtual void Modified()
Update the modification time for this object.
virtual void SetPosition(double x, double y, double z)
Set/Get/Add the position of the Prop3D in world coordinates.
virtual void GetMatrix(double result[16])
Return a reference to the Prop3D's 4x4 composite matrix.
double * GetOrientation()
Returns the orientation of the Prop3D as s vector of X,Y and Z rotation.
double * GetZRange()
Get the Prop3D's z range in world coordinates.
vtkWeakPointer< vtkRenderer > CoordinateSystemRenderer
void SetCoordinateSystem(CoordinateSystems val)
Specify the coordinate system that this prop is relative to.
void SetOrientation(double x, double y, double z)
Sets the orientation of the Prop3D.
virtual void GetMatrix(vtkMatrix4x4 *result)
Return a reference to the Prop3D's 4x4 composite matrix.
void SetScale(double s)
Method to set the scale isotropically.
virtual void SetScale(double scale[3])
Set/Get the scale of the actor.
void RotateX(double)
Rotate the Prop3D in degrees about the X axis using the right hand rule.
vtkNew< vtkMatrix4x4 > TempMatrix4x4
double GetLength()
Get the length of the diagonal of the bounding box.
void AddPosition(double deltaX, double deltaY, double deltaZ)
double * GetCenter()
Get the center of the bounding box in world coordinates.
vtkRenderer * GetCoordinateSystemRenderer()
Specify the Renderer that the prop3d is relative to when the coordinate system is set to PHYSICAL or ...
void AddPosition(double deltaPosition[3])
void RotateWXYZ(double w, double x, double y, double z)
Rotate the Prop3D in degrees about an arbitrary axis specified by the last three arguments.
const char * GetCoordinateSystemAsString()
Specify the coordinate system that this prop is relative to.
vtkMatrix4x4 * UserMatrix
vtkMatrix4x4 * GetUserMatrix()
The UserMatrix can be used in place of UserTransform.
virtual void SetPosition(double pos[3])
double * GetXRange()
Get the Prop3D's x range in world coordinates.
virtual void SetOrigin(double x, double y, double z)
Set/Get the origin of the Prop3D.
virtual void SetScale(double x, double y, double z)
Set/Get the scale of the actor.
void PokeMatrix(vtkMatrix4x4 *matrix) override
This method modifies the vtkProp3D so that its transformation state is set to the matrix specified.
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
virtual void GetModelToWorldMatrix(vtkMatrix4x4 *result)
Return a reference to the Prop3D's Model to World matrix.
void RotateY(double)
Rotate the Prop3D in degrees about the Y axis using the right hand rule.
double * GetOrientationWXYZ()
Returns the WXYZ orientation of the Prop3D.
double * GetYRange()
Get the Prop3D's y range in world coordinates.
void SetCoordinateSystemToWorld()
Specify the coordinate system that this prop is relative to.
void SetCoordinateSystemRenderer(vtkRenderer *ren)
Specify the Renderer that the prop3d is relative to when the coordinate system is set to PHYSICAL or ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int CoordinateSystemDevice
void SetUserMatrix(vtkMatrix4x4 *matrix)
The UserMatrix can be used in place of UserTransform.
CoordinateSystems CoordinateSystem
void SetUserTransform(vtkLinearTransform *transform)
In addition to the instance variables such as position and orientation, you can add an additional tra...
void SetCoordinateSystemToDevice()
Specify the coordinate system that this prop is relative to.
void SetCoordinateSystemToPhysical()
Specify the coordinate system that this prop is relative to.
CoordinateSystems
Specify the coordinate system that this prop is relative to.
void GetBounds(double bounds[6])
Return a reference to the Prop3D's composite transform.
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
void AddOrientation(double x, double y, double z)
Add to the current orientation.
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.
vtkLinearTransform * UserTransform
virtual void ComputeMatrix()
Generate the matrix based on ivars.
vtkMTimeType GetUserTransformMatrixMTime()
Get the modified time of the user matrix or user transform.
virtual void SetOrigin(const double pos[3])
Set/Get the origin of the Prop3D.
void InitPathTraversal() override
Overload vtkProp's method for setting up assembly paths.
virtual void SetPropertiesFromModelToWorldMatrix(vtkMatrix4x4 *modelToWorld)
Set the position, scale, orientation from a provided model to world matrix.
void RotateZ(double)
Rotate the Prop3D in degrees about the Z axis using the right hand rule.
abstract specification for renderers
record modification and/or execution time
a weak reference to a vtkObject.
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)