VTK
|
represents an 3D object for placement in a rendered scene More...
#include <vtkProp3D.h>
Public Types | |
typedef vtkProp | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkProp3D * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | ShallowCopy (vtkProp *prop) |
virtual void | SetPosition (double pos[3]) |
virtual double * | GetPosition () |
virtual void | GetPosition (double data[3]) |
void | AddPosition (double deltaPosition[3]) |
void | AddPosition (double deltaX, double deltaY, double deltaZ) |
double * | GetCenter () |
double * | GetXRange () |
double * | GetYRange () |
double * | GetZRange () |
double | GetLength () |
void | RotateX (double) |
void | RotateY (double) |
void | RotateZ (double) |
void | RotateWXYZ (double w, double x, double y, double z) |
void | SetOrientation (double x, double y, double z) |
void | SetOrientation (double orientation[3]) |
double * | GetOrientationWXYZ () |
void | AddOrientation (double x, double y, double z) |
void | AddOrientation (double orentation[3]) |
void | PokeMatrix (vtkMatrix4x4 *matrix) |
void | InitPathTraversal () |
unsigned long int | GetMTime () |
unsigned long int | GetUserTransformMatrixMTime () |
virtual void | ComputeMatrix () |
virtual void | SetPosition (double x, double y, double z) |
virtual void | SetOrigin (double x, double y, double z) |
virtual void | SetOrigin (const double pos[3]) |
virtual double * | GetOrigin () |
virtual void | GetOrigin (double data[3]) |
virtual void | SetScale (double x, double y, double z) |
virtual void | SetScale (double scale[3]) |
virtual double * | GetScale () |
virtual void | GetScale (double data[3]) |
void | SetScale (double s) |
void | SetUserTransform (vtkLinearTransform *transform) |
virtual vtkLinearTransform * | GetUserTransform () |
void | SetUserMatrix (vtkMatrix4x4 *matrix) |
vtkMatrix4x4 * | GetUserMatrix () |
virtual void | GetMatrix (vtkMatrix4x4 *m) |
virtual void | GetMatrix (double m[16]) |
void | GetBounds (double bounds[6]) |
virtual double * | GetBounds ()=0 |
double * | GetOrientation () |
void | GetOrientation (double orentation[3]) |
vtkMatrix4x4 * | GetMatrix () |
virtual int | GetIsIdentity () |
![]() | |
vtkProp * | NewInstance () const |
virtual void | Pick () |
virtual bool | HasKeys (vtkInformation *requiredKeys) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
virtual void | GetActors (vtkPropCollection *) |
virtual void | GetActors2D (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual void | SetVisibility (int) |
virtual int | GetVisibility () |
virtual void | VisibilityOn () |
virtual void | VisibilityOff () |
virtual void | SetPickable (int) |
virtual int | GetPickable () |
virtual void | PickableOn () |
virtual void | PickableOff () |
virtual void | SetDragable (int) |
virtual int | GetDragable () |
virtual void | DragableOn () |
virtual void | DragableOff () |
virtual unsigned long | GetRedrawMTime () |
virtual void | SetUseBounds (bool) |
virtual bool | GetUseBounds () |
virtual void | UseBoundsOn () |
virtual void | UseBoundsOff () |
virtual vtkAssemblyPath * | GetNextPath () |
virtual int | GetNumberOfPaths () |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
virtual vtkInformation * | GetPropertyKeys () |
virtual void | SetPropertyKeys (vtkInformation *keys) |
virtual int | RenderOpaqueGeometry (vtkViewport *) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual int | RenderOverlay (vtkViewport *) |
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
virtual int | HasTranslucentPolygonalGeometry () |
virtual double | GetEstimatedRenderTime (vtkViewport *) |
virtual double | GetEstimatedRenderTime () |
virtual void | SetEstimatedRenderTime (double t) |
virtual void | RestoreEstimatedRenderTime () |
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
virtual double | GetAllocatedRenderTime () |
void | SetRenderTimeMultiplier (double t) |
virtual double | GetRenderTimeMultiplier () |
virtual bool | GetSupportsSelection () |
virtual int | GetNumberOfConsumers () |
void | AddConsumer (vtkObject *c) |
void | RemoveConsumer (vtkObject *c) |
vtkObject * | GetConsumer (int i) |
int | IsConsumer (vtkObject *c) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkProp3D * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkProp3D () | |
~vtkProp3D () | |
![]() | |
vtkProp () | |
~vtkProp () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkLinearTransform * | UserTransform |
vtkMatrix4x4 * | UserMatrix |
vtkMatrix4x4 * | Matrix |
vtkTimeStamp | MatrixMTime |
double | Origin [3] |
double | Position [3] |
double | Orientation [3] |
double | Scale [3] |
double | Center [3] |
vtkTransform * | Transform |
double | Bounds [6] |
vtkProp3D * | CachedProp3D |
int | IsIdentity |
![]() | |
int | Visibility |
int | Pickable |
int | Dragable |
bool | UseBounds |
double | AllocatedRenderTime |
double | EstimatedRenderTime |
double | SavedEstimatedRenderTime |
double | RenderTimeMultiplier |
int | NumberOfConsumers |
vtkObject ** | Consumers |
vtkAssemblyPaths * | Paths |
vtkInformation * | PropertyKeys |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
represents an 3D object for placement in a rendered scene
vtkProp3D is an abstract class used to represent an entity in a rendering scene (i.e., vtkProp3D is a vtkProp with an associated transformation matrix). It handles functions related to the position, orientation and scaling. It combines these instance variables into one 4x4 transformation matrix as follows: [x y z 1] = [x y z 1] Translate(-origin) Scale(scale) Rot(y) Rot(x) Rot (z) Trans(origin) Trans(position). Both vtkActor and vtkVolume are specializations of class vtkProp. The constructor defaults to: origin(0,0,0) position=(0,0,0) orientation=(0,0,0), no user defined matrix or transform, and no texture map.
Definition at line 42 of file vtkProp3D.h.
typedef vtkProp vtkProp3D::Superclass |
Definition at line 45 of file vtkProp3D.h.
|
protected |
|
protected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkProp.
Reimplemented in vtkAxisActor, vtkCubeAxesActor, vtkAssembly, vtkLODActor, vtkAxesActor, vtkLODProp3D, vtkQuadricLODActor, vtkAnnotatedCubeActor, vtkPolarAxesActor, vtkLightActor, vtkImageSlice, vtkProp3DFollower, vtkActor, vtkTextActor3D, vtkVolume, vtkImageActor, vtkFollower, vtkImageStack, vtkResliceCursorActor, vtkProp3DAxisFollower, vtkAxisFollower, vtkCameraActor, vtkOpenGLActor, and vtkOpenGLActor.
|
static |
|
protectedvirtual |
Reimplemented from vtkProp.
Reimplemented in vtkAxisActor, vtkCubeAxesActor, vtkAssembly, vtkLODActor, vtkAxesActor, vtkLODProp3D, vtkQuadricLODActor, vtkAnnotatedCubeActor, vtkPolarAxesActor, vtkLightActor, vtkImageSlice, vtkProp3DFollower, vtkActor, vtkTextActor3D, vtkVolume, vtkImageActor, vtkFollower, vtkImageStack, vtkResliceCursorActor, vtkProp3DAxisFollower, vtkAxisFollower, vtkCameraActor, vtkOpenGLActor, and vtkOpenGLActor.
vtkProp3D* vtkProp3D::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkProp.
Reimplemented in vtkLODActor, vtkQuadricLODActor, vtkProp3DFollower, vtkTextActor3D, vtkVolume, vtkImageStack, vtkOpenGLActor, and vtkOpenGLActor.
|
virtual |
Shallow copy of this vtkProp3D.
Reimplemented from vtkProp.
Reimplemented in vtkQuadricLODActor, vtkLODActor, vtkVolume, vtkImageStack, vtkProp3DFollower, and vtkTextActor3D.
Set/Get/Add the position of the Prop3D in world coordinates.
Definition at line 53 of file vtkProp3D.h.
|
inlinevirtual |
Definition at line 71 of file vtkProp3D.h.
|
virtual |
|
virtual |
void vtkProp3D::AddPosition | ( | double | deltaPosition[3] | ) |
Set/Get the origin of the Prop3D. This is the point about which all rotations take place.
Definition at line 80 of file vtkProp3D.h.
|
inlinevirtual |
Set/Get the origin of the Prop3D. This is the point about which all rotations take place.
Definition at line 96 of file vtkProp3D.h.
|
virtual |
Set/Get the origin of the Prop3D. This is the point about which all rotations take place.
|
virtual |
Set/Get the origin of the Prop3D. This is the point about which all rotations take place.
Set/Get the scale of the actor. Scaling in performed independently on the X, Y and Z axis. A scale of zero is illegal and will be replaced with one.
Definition at line 105 of file vtkProp3D.h.
|
inlinevirtual |
Set/Get the scale of the actor. Scaling in performed independently on the X, Y and Z axis. A scale of zero is illegal and will be replaced with one.
Definition at line 121 of file vtkProp3D.h.
|
virtual |
Set/Get the scale of the actor. Scaling in performed independently on the X, Y and Z axis. A scale of zero is illegal and will be replaced with one.
|
virtual |
Set/Get the scale of the actor. Scaling in performed independently on the X, Y and Z axis. A scale of zero is illegal and will be replaced with one.
|
inline |
Method to set the scale isotropically
Definition at line 128 of file vtkProp3D.h.
void vtkProp3D::SetUserTransform | ( | vtkLinearTransform * | transform | ) |
In addition to the instance variables such as position and orientation, you can add an additional transformation for your own use. This transformation is concatenated with the actor's internal transformation, which you implicitly create through the use of SetPosition(), SetOrigin() and SetOrientation().
If the internal transformation is identity (i.e. if you don't set the Position, Origin, or Orientation) then the actors final transformation will be the UserTransform, concatenated with the UserMatrix if the UserMatrix is present.
|
virtual |
In addition to the instance variables such as position and orientation, you can add an additional transformation for your own use. This transformation is concatenated with the actor's internal transformation, which you implicitly create through the use of SetPosition(), SetOrigin() and SetOrientation().
If the internal transformation is identity (i.e. if you don't set the Position, Origin, or Orientation) then the actors final transformation will be the UserTransform, concatenated with the UserMatrix if the UserMatrix is present.
void vtkProp3D::SetUserMatrix | ( | vtkMatrix4x4 * | matrix | ) |
The UserMatrix can be used in place of UserTransform.
vtkMatrix4x4* vtkProp3D::GetUserMatrix | ( | ) |
The UserMatrix can be used in place of UserTransform.
|
virtual |
Return a reference to the Prop3D's 4x4 composite matrix. Get the matrix from the position, origin, scale and orientation This matrix is cached, so multiple GetMatrix() calls will be efficient.
|
virtual |
Return a reference to the Prop3D's 4x4 composite matrix. Get the matrix from the position, origin, scale and orientation This matrix is cached, so multiple GetMatrix() calls will be efficient.
void vtkProp3D::GetBounds | ( | double | bounds[6] | ) |
Return a reference to the Prop3D's composite transform.
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
pure virtual |
Return a reference to the Prop3D's composite transform.
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Reimplemented from vtkProp.
Implemented in vtkPolarAxesActor, vtkAssembly, vtkActor, vtkAxisActor, vtkCubeAxesActor, vtkAxesActor, vtkImageActor, vtkAnnotatedCubeActor, vtkProp3DFollower, vtkLightActor, vtkImageStack, vtkVolume, vtkImageSlice, vtkTextActor3D, vtkLODProp3D, vtkCameraActor, and vtkResliceCursorActor.
double* vtkProp3D::GetCenter | ( | ) |
Get the center of the bounding box in world coordinates.
double* vtkProp3D::GetXRange | ( | ) |
Get the Prop3D's x range in world coordinates.
double* vtkProp3D::GetYRange | ( | ) |
Get the Prop3D's y range in world coordinates.
double* vtkProp3D::GetZRange | ( | ) |
Get the Prop3D's z range in world coordinates.
double vtkProp3D::GetLength | ( | ) |
Get the length of the diagonal of the bounding box.
void vtkProp3D::RotateX | ( | double | ) |
Rotate the Prop3D in degrees about the X axis using the right hand rule. The axis is the Prop3D's X axis, which can change as other rotations are performed. To rotate about the world X axis use RotateWXYZ (angle, 1, 0, 0). This rotation is applied before all others in the current transformation matrix.
void vtkProp3D::RotateY | ( | double | ) |
Rotate the Prop3D in degrees about the Y axis using the right hand rule. The axis is the Prop3D's Y axis, which can change as other rotations are performed. To rotate about the world Y axis use RotateWXYZ (angle, 0, 1, 0). This rotation is applied before all others in the current transformation matrix.
void vtkProp3D::RotateZ | ( | double | ) |
Rotate the Prop3D in degrees about the Z axis using the right hand rule. The axis is the Prop3D's Z axis, which can change as other rotations are performed. To rotate about the world Z axis use RotateWXYZ (angle, 0, 0, 1). This rotation is applied before all others in the current transformation matrix.
Rotate the Prop3D in degrees about an arbitrary axis specified by the last three arguments. The axis is specified in world coordinates. To rotate an about its model axes, use RotateX, RotateY, RotateZ.
Sets the orientation of the Prop3D. Orientation is specified as X,Y and Z rotations in that order, but they are performed as RotateZ, RotateX, and finally RotateY.
void vtkProp3D::SetOrientation | ( | double | orientation[3] | ) |
Sets the orientation of the Prop3D. Orientation is specified as X,Y and Z rotations in that order, but they are performed as RotateZ, RotateX, and finally RotateY.
double* vtkProp3D::GetOrientation | ( | ) |
Returns the orientation of the Prop3D as s vector of X,Y and Z rotation. The ordering in which these rotations must be done to generate the same matrix is RotateZ, RotateX, and finally RotateY. See also SetOrientation.
void vtkProp3D::GetOrientation | ( | double | orentation[3] | ) |
Returns the orientation of the Prop3D as s vector of X,Y and Z rotation. The ordering in which these rotations must be done to generate the same matrix is RotateZ, RotateX, and finally RotateY. See also SetOrientation.
double* vtkProp3D::GetOrientationWXYZ | ( | ) |
Returns the WXYZ orientation of the Prop3D.
Add to the current orientation. See SetOrientation and GetOrientation for more details. This basically does a GetOrientation, adds the passed in arguments, and then calls SetOrientation.
void vtkProp3D::AddOrientation | ( | double | orentation[3] | ) |
Add to the current orientation. See SetOrientation and GetOrientation for more details. This basically does a GetOrientation, adds the passed in arguments, and then calls SetOrientation.
void vtkProp3D::PokeMatrix | ( | vtkMatrix4x4 * | matrix | ) |
This method modifies the vtkProp3D so that its transformation state is set to the matrix specified. The method does this by setting appropriate transformation-related ivars to initial values (i.e., not transformed), and placing the user-supplied matrix into the UserMatrix of this vtkProp3D. If the method is called again with a NULL matrix, then the original state of the vtkProp3D will be restored. This method is used to support picking and assembly structures.
|
virtual |
Overload vtkProp's method for setting up assembly paths. See the documentation for vtkProp.
Reimplemented from vtkProp.
Reimplemented in vtkImageStack, and vtkProp3DFollower.
|
virtual |
Get the vtkProp3D's mtime
Reimplemented from vtkObject.
Reimplemented in vtkVolume, and vtkImageStack.
unsigned long int vtkProp3D::GetUserTransformMatrixMTime | ( | ) |
Get the modified time of the user matrix or user transform.
|
virtual |
Generate the matrix based on ivars
Reimplemented in vtkProp3DAxisFollower, vtkProp3DFollower, and vtkFollower.
|
inlinevirtual |
Get a pointer to an internal vtkMatrix4x4. that represents
Reimplemented from vtkProp.
Definition at line 266 of file vtkProp3D.h.
|
virtual |
Is the matrix for this actor identity
|
protected |
Definition at line 282 of file vtkProp3D.h.
|
protected |
Definition at line 283 of file vtkProp3D.h.
|
protected |
Definition at line 284 of file vtkProp3D.h.
|
protected |
Definition at line 285 of file vtkProp3D.h.
|
protected |
Definition at line 286 of file vtkProp3D.h.
|
protected |
Definition at line 287 of file vtkProp3D.h.
|
protected |
Definition at line 288 of file vtkProp3D.h.
|
protected |
Definition at line 289 of file vtkProp3D.h.
|
protected |
Definition at line 290 of file vtkProp3D.h.
|
protected |
Definition at line 291 of file vtkProp3D.h.
|
protected |
Definition at line 292 of file vtkProp3D.h.
|
protected |
Definition at line 293 of file vtkProp3D.h.
|
protected |
Definition at line 294 of file vtkProp3D.h.