|
VTK
|
actor that draws 2D data with texture support More...
#include <vtkTexturedActor2D.h>
Public Types | |
| typedef vtkActor2D | Superclass |
Public Types inherited from vtkActor2D | |
| typedef vtkProp | Superclass |
Public Types inherited from vtkProp | |
| typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
| typedef vtkObjectBase | Superclass |
Public Member Functions | |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual int | IsA (const char *type) |
| vtkTexturedActor2D * | NewInstance () const |
| virtual void | SetTexture (vtkTexture *texture) |
| virtual vtkTexture * | GetTexture () |
| virtual void | ReleaseGraphicsResources (vtkWindow *win) |
| virtual int | RenderOverlay (vtkViewport *viewport) |
| virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
| virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
| virtual unsigned long int | GetMTime () |
| virtual void | ShallowCopy (vtkProp *prop) |
Public Member Functions inherited from vtkActor2D | |
| vtkActor2D * | NewInstance () const |
| virtual int | HasTranslucentPolygonalGeometry () |
| virtual void | SetMapper (vtkMapper2D *mapper) |
| virtual vtkMapper2D * | GetMapper () |
| virtual void | SetLayerNumber (int) |
| virtual int | GetLayerNumber () |
| vtkProperty2D * | GetProperty () |
| virtual void | SetProperty (vtkProperty2D *) |
| virtual vtkCoordinate * | GetPositionCoordinate () |
| virtual void | SetPosition (float x[2]) |
| virtual void | SetPosition (float x, float y) |
| virtual float * | GetPosition () |
| void | SetDisplayPosition (int, int) |
| virtual vtkCoordinate * | GetPosition2Coordinate () |
| virtual void | SetPosition2 (float x[2]) |
| virtual void | SetPosition2 (float x, float y) |
| virtual float * | GetPosition2 () |
| void | SetWidth (double w) |
| double | GetWidth () |
| void | SetHeight (double h) |
| double | GetHeight () |
| virtual void | GetActors2D (vtkPropCollection *pc) |
| virtual vtkCoordinate * | GetActualPositionCoordinate (void) |
| virtual vtkCoordinate * | GetActualPosition2Coordinate (void) |
Public Member Functions inherited from vtkProp | |
| vtkProp * | NewInstance () const |
| virtual void | GetActors (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 | Pick () |
| 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 double * | GetBounds () |
| virtual void | InitPathTraversal () |
| virtual vtkAssemblyPath * | GetNextPath () |
| virtual int | GetNumberOfPaths () |
| virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
| virtual vtkMatrix4x4 * | GetMatrix () |
| virtual vtkInformation * | GetPropertyKeys () |
| virtual void | SetPropertyKeys (vtkInformation *keys) |
| virtual bool | HasKeys (vtkInformation *requiredKeys) |
| virtual int | RenderVolumetricGeometry (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 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 void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
| virtual bool | GetSupportsSelection () |
| virtual int | GetNumberOfConsumers () |
| void | AddConsumer (vtkObject *c) |
| void | RemoveConsumer (vtkObject *c) |
| vtkObject * | GetConsumer (int i) |
| int | IsConsumer (vtkObject *c) |
Public Member Functions inherited from vtkObject | |
| 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) |
Public Member Functions inherited from vtkObjectBase | |
| const char * | GetClassName () const |
| virtual void | Delete () |
| virtual void | FastDelete () |
| void | Print (ostream &os) |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| virtual void | Register (vtkObjectBase *o) |
| virtual void | UnRegister (vtkObjectBase *o) |
| int | GetReferenceCount () |
| void | SetReferenceCount (int) |
| void | PrintRevisions (ostream &) |
Static Public Member Functions | |
| static vtkTexturedActor2D * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkTexturedActor2D * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkActor2D | |
| static int | IsTypeOf (const char *type) |
| static vtkActor2D * | SafeDownCast (vtkObjectBase *o) |
| static vtkActor2D * | New () |
Static Public Member Functions inherited from vtkProp | |
| static int | IsTypeOf (const char *type) |
| static vtkProp * | SafeDownCast (vtkObjectBase *o) |
| static vtkInformationIntegerKey * | GeneralTextureUnit () |
| static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
Static Public Member Functions inherited from vtkObject | |
| 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 Public Member Functions inherited from vtkObjectBase | |
| static int | IsTypeOf (const char *name) |
| static vtkObjectBase * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkTexturedActor2D () | |
| ~vtkTexturedActor2D () | |
Protected Member Functions inherited from vtkActor2D | |
| vtkActor2D () | |
| ~vtkActor2D () | |
Protected Member Functions inherited from vtkProp | |
| vtkProp () | |
| ~vtkProp () | |
Protected Member Functions inherited from vtkObject | |
| vtkObject () | |
| virtual | ~vtkObject () |
| virtual void | RegisterInternal (vtkObjectBase *, int check) |
| virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | CollectRevisions (ostream &) |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Protected Attributes | |
| vtkTexture * | Texture |
Protected Attributes inherited from vtkActor2D | |
| vtkMapper2D * | Mapper |
| int | LayerNumber |
| vtkProperty2D * | Property |
| vtkCoordinate * | PositionCoordinate |
| vtkCoordinate * | Position2Coordinate |
Protected Attributes inherited from vtkProp | |
| int | Visibility |
| int | Pickable |
| int | Dragable |
| bool | UseBounds |
| double | AllocatedRenderTime |
| double | EstimatedRenderTime |
| double | SavedEstimatedRenderTime |
| double | RenderTimeMultiplier |
| int | NumberOfConsumers |
| vtkObject ** | Consumers |
| vtkAssemblyPaths * | Paths |
| vtkInformation * | PropertyKeys |
Protected Attributes inherited from vtkObject | |
| bool | Debug |
| vtkTimeStamp | MTime |
| vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
| vtkAtomicInt32 | ReferenceCount |
| vtkWeakPointerBase ** | WeakPointers |
actor that draws 2D data with texture support
vtkTexturedActor2D is an Actor2D which has additional support for textures, just like vtkActor. To use textures, the geometry must have texture coordinates, and the texture must be set with SetTexture().
Definition at line 40 of file vtkTexturedActor2D.h.
Definition at line 45 of file vtkTexturedActor2D.h.
|
protected |
|
protected |
|
static |
|
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 vtkActor2D.
Reimplemented in vtkScaledTextActor.
|
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 vtkActor2D.
Reimplemented in vtkScaledTextActor, and vtkTextActor.
|
static |
|
protectedvirtual |
Reimplemented from vtkActor2D.
Reimplemented in vtkScaledTextActor, and vtkTextActor.
| vtkTexturedActor2D* vtkTexturedActor2D::NewInstance | ( | ) | const |
|
virtual |
Set/Get the texture object to control rendering texture maps. This will be a vtkTexture object. An actor does not need to have an associated texture map and multiple actors can share one texture.
|
virtual |
|
virtual |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkActor2D.
Reimplemented in vtkTextActor.
|
virtual |
|
virtual |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS All concrete subclasses must be able to render themselves. There are four key render methods in vtk and they correspond to four different points in the rendering cycle. Any given prop may implement one or more of these methods. The first method is intended for rendering all opaque geometry. The second method is intended for rendering all translucent polygonal geometry. The third one is intended for rendering all translucent volumetric geometry. Most of the volume rendering mappers draw their results during this third method. The last method is to render any 2D annotation or overlays. Each of these methods return an integer value indicating whether or not this render method was applied to this data.
Reimplemented from vtkActor2D.
Reimplemented in vtkTextActor.
|
virtual |
Reimplemented from vtkActor2D.
Reimplemented in vtkTextActor.
|
virtual |
Return this object's modified time.
Reimplemented from vtkActor2D.
|
virtual |
Shallow copy of this vtkTexturedActor2D. Overrides vtkActor2D method.
Reimplemented from vtkActor2D.
Reimplemented in vtkTextActor.
|
protected |
Definition at line 77 of file vtkTexturedActor2D.h.