Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkActor2D Class Reference

a actor that draws 2D data. More...

#include <vtkActor2D.h>

Inheritance diagram for vtkActor2D:

Inheritance graph
[legend]
Collaboration diagram for vtkActor2D:

Collaboration graph
[legend]
List of all members.

Public Methods

void PrintSelf (ostream &os, vtkIndent indent)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
vtkProperty2DGetProperty ()
void SetDisplayPosition (int, int)
unsigned long GetMTime ()
virtual void GetActors2D (vtkPropCollection *pc)
void ShallowCopy (vtkProp *prop)
virtual void ReleaseGraphicsResources (vtkWindow *)
int RenderOverlay (vtkViewport *viewport)
int RenderOpaqueGeometry (vtkViewport *viewport)
int RenderTranslucentGeometry (vtkViewport *viewport)
void SetMapper (vtkMapper2D *mapper)
virtual vtkMapper2DGetMapper ()
virtual void SetLayerNumber (int)
virtual int GetLayerNumber ()
virtual void SetProperty (vtkProperty2D *)
virtual vtkCoordinateGetPositionCoordinate ()
virtual void SetPosition (float x[2])
virtual void SetPosition (float x, float y)
virtual float * GetPosition ()
virtual vtkCoordinateGetPosition2Coordinate ()
virtual void SetPosition2 (float x[2])
virtual void SetPosition2 (float x, float y)
virtual float * GetPosition2 ()
void SetWidth (float w)
float GetWidth ()
void SetHeight (float h)
float GetHeight ()

Static Public Methods

int IsTypeOf (const char *type)
vtkActor2D * SafeDownCast (vtkObject *o)
vtkActor2D * New ()

Protected Methods

 vtkActor2D ()
 ~vtkActor2D ()

Protected Attributes

vtkMapper2DMapper
int LayerNumber
vtkProperty2DProperty
vtkCoordinatePositionCoordinate
vtkCoordinatePosition2Coordinate

Detailed Description

a actor that draws 2D data.

Date:
2001/10/11 13:35:59
Revision:
1.33
Thanks:
Thanks to Matt Turek who developed this class.
vtkActor2D is similar to vtkActor, but it is made to be used with two dimensional images and annotation. vtkActor2D has a position but does not use a transformation matrix like vtkActor (see the superclass vtkProp for information on positioning vtkActor2D). vtkActor2D has a reference to a vtkMapper2D object which does the rendering.

See also:
vtkProp vtkMapper2D vtkProperty2D
Examples:
vtkActor2D (Examples)
Tests:
vtkActor2D (Tests)

Definition at line 71 of file vtkActor2D.h.


Constructor & Destructor Documentation

vtkActor2D::vtkActor2D   [protected]
 

vtkActor2D::~vtkActor2D   [protected]
 


Member Function Documentation

void vtkActor2D::PrintSelf ostream &    os,
vtkIndent    indent
[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 vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

virtual const char* vtkActor2D::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

int vtkActor2D::IsTypeOf const char *    type [static]
 

Return 1 if this class type 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 vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

virtual int vtkActor2D::IsA const char *    type [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 vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

vtkActor2D* vtkActor2D::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

vtkActor2D* vtkActor2D::New   [static]
 

Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at layer 0.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

int vtkActor2D::RenderOverlay vtkViewport   viewport [virtual]
 

Support the standard render methods.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

int vtkActor2D::RenderOpaqueGeometry vtkViewport   viewport [virtual]
 

Support the standard render methods.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

int vtkActor2D::RenderTranslucentGeometry vtkViewport   viewport [virtual]
 

Support the standard render methods.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.

void vtkActor2D::SetMapper vtkMapper2D   mapper
 

Set/Get the vtkMapper2D which defines the data to be drawn.

Referenced by vtkScaledTextActor::LastOrigin().

virtual vtkMapper2D* vtkActor2D::GetMapper   [virtual]
 

Set/Get the vtkMapper2D which defines the data to be drawn.

virtual void vtkActor2D::SetLayerNumber int    [virtual]
 

Set/Get the layer number in the overlay planes into which to render.

virtual int vtkActor2D::GetLayerNumber   [virtual]
 

Set/Get the layer number in the overlay planes into which to render.

vtkProperty2D* vtkActor2D::GetProperty  
 

Returns this actor's vtkProperty2D. Creates a property if one doesn't already exist.

virtual void vtkActor2D::SetProperty vtkProperty2D   [virtual]
 

Set this vtkProp's vtkProperty2D.

virtual vtkCoordinate* vtkActor2D::GetPositionCoordinate   [virtual]
 

Get the PositionCoordinate instance of vtkCoordinate. This is used for for complicated or relative positioning. The position variable controls the lower left corner of the Actor2D

virtual void vtkActor2D::SetPosition float    x[2] [virtual]
 

Get the PositionCoordinate instance of vtkCoordinate. This is used for for complicated or relative positioning. The position variable controls the lower left corner of the Actor2D

virtual void vtkActor2D::SetPosition float    x,
float    y
[virtual]
 

Get the PositionCoordinate instance of vtkCoordinate. This is used for for complicated or relative positioning. The position variable controls the lower left corner of the Actor2D

virtual float* vtkActor2D::GetPosition   [virtual]
 

Get the PositionCoordinate instance of vtkCoordinate. This is used for for complicated or relative positioning. The position variable controls the lower left corner of the Actor2D

void vtkActor2D::SetDisplayPosition int   ,
int   
 

Set the Prop2D's position in display coordinates.

virtual vtkCoordinate* vtkActor2D::GetPosition2Coordinate   [virtual]
 

Access the Position2 instance variable. This variable controls the upper right corner of the Actor2D. It is by default relative to Position and in normalized viewport coordinates. Some 2D actor subclasses ignore the position2 variable

virtual void vtkActor2D::SetPosition2 float    x[2] [virtual]
 

Access the Position2 instance variable. This variable controls the upper right corner of the Actor2D. It is by default relative to Position and in normalized viewport coordinates. Some 2D actor subclasses ignore the position2 variable

virtual void vtkActor2D::SetPosition2 float    x,
float    y
[virtual]
 

Access the Position2 instance variable. This variable controls the upper right corner of the Actor2D. It is by default relative to Position and in normalized viewport coordinates. Some 2D actor subclasses ignore the position2 variable

virtual float* vtkActor2D::GetPosition2   [virtual]
 

Access the Position2 instance variable. This variable controls the upper right corner of the Actor2D. It is by default relative to Position and in normalized viewport coordinates. Some 2D actor subclasses ignore the position2 variable

void vtkActor2D::SetWidth float    w
 

Set/Get the height and width of the Actor2D. The value is expressed as a fraction of the viewport. This really is just another way of setting the Position2 instance variable.

float vtkActor2D::GetWidth  
 

Set/Get the height and width of the Actor2D. The value is expressed as a fraction of the viewport. This really is just another way of setting the Position2 instance variable.

void vtkActor2D::SetHeight float    h
 

Set/Get the height and width of the Actor2D. The value is expressed as a fraction of the viewport. This really is just another way of setting the Position2 instance variable.

float vtkActor2D::GetHeight  
 

Set/Get the height and width of the Actor2D. The value is expressed as a fraction of the viewport. This really is just another way of setting the Position2 instance variable.

unsigned long vtkActor2D::GetMTime   [virtual]
 

Return this objects MTime.

Reimplemented from vtkObject.

Reimplemented in vtkXYPlotActor.

virtual void vtkActor2D::GetActors2D vtkPropCollection   pc [virtual]
 

For some exporters and other other operations we must be able to collect all the actors or volumes. These methods are used in that process.

Reimplemented from vtkProp.

void vtkActor2D::ShallowCopy vtkProp   prop [virtual]
 

Shallow copy of this vtkActor2D. Overloads the virtual vtkProp method.

Reimplemented from vtkProp.

Reimplemented in vtkCaptionActor2D, vtkLegendBoxActor, vtkAxisActor2D, vtkScalarBarActor, and vtkScaledTextActor.

virtual void vtkActor2D::ReleaseGraphicsResources vtkWindow   [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 vtkProp.

Reimplemented in vtkCaptionActor2D, vtkCubeAxesActor2D, vtkLegendBoxActor, vtkXYPlotActor, vtkAxisActor2D, vtkParallelCoordinatesActor, vtkScalarBarActor, and vtkScaledTextActor.


Member Data Documentation

vtkMapper2D* vtkActor2D::Mapper [protected]
 

Definition at line 158 of file vtkActor2D.h.

int vtkActor2D::LayerNumber [protected]
 

Definition at line 159 of file vtkActor2D.h.

vtkProperty2D* vtkActor2D::Property [protected]
 

Definition at line 160 of file vtkActor2D.h.

vtkCoordinate* vtkActor2D::PositionCoordinate [protected]
 

Definition at line 161 of file vtkActor2D.h.

vtkCoordinate* vtkActor2D::Position2Coordinate [protected]
 

Definition at line 162 of file vtkActor2D.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:27:14 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001