VTK
|
a vtkContextItem that draws a supplied image in the scene. More...
#include <vtkImageItem.h>
Public Types | |
typedef vtkContextItem | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImageItem * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual bool | Paint (vtkContext2D *painter) |
void | SetImage (vtkImageData *image) |
virtual vtkImageData * | GetImage () |
virtual void | SetPosition (float, float) |
void | SetPosition (float[2]) |
virtual float * | GetPosition () |
virtual void | GetPosition (float &, float &) |
virtual void | GetPosition (float[2]) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkImageItem * | SafeDownCast (vtkObjectBase *o) |
static vtkImageItem * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkImageItem () | |
~vtkImageItem () | |
Protected Attributes | |
float | Position [2] |
vtkImageData * | Image |
a vtkContextItem that draws a supplied image in the scene.
This vtkContextItem draws the supplied image in the scene.
Definition at line 36 of file vtkImageItem.h.
Reimplemented from vtkContextItem.
Definition at line 39 of file vtkImageItem.h.
vtkImageItem::vtkImageItem | ( | ) | [protected] |
vtkImageItem::~vtkImageItem | ( | ) | [protected] |
static int vtkImageItem::IsTypeOf | ( | const char * | name | ) | [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 vtkContextItem.
virtual int vtkImageItem::IsA | ( | const char * | name | ) | [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 vtkContextItem.
static vtkImageItem* vtkImageItem::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkContextItem.
virtual vtkObjectBase* vtkImageItem::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkContextItem.
vtkImageItem* vtkImageItem::NewInstance | ( | ) | const |
Reimplemented from vtkContextItem.
virtual void vtkImageItem::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 vtkContextItem.
static vtkImageItem* vtkImageItem::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual bool vtkImageItem::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the item.
Reimplemented from vtkAbstractContextItem.
void vtkImageItem::SetImage | ( | vtkImageData * | image | ) |
Set the image of the item.
virtual vtkImageData* vtkImageItem::GetImage | ( | ) | [virtual] |
Get the image of the item.
virtual void vtkImageItem::SetPosition | ( | float | , |
float | |||
) | [virtual] |
Set the position of the bottom corner of the image.
void vtkImageItem::SetPosition | ( | float | [2] | ) |
Set the position of the bottom corner of the image.
virtual float* vtkImageItem::GetPosition | ( | ) | [virtual] |
Get the position of the bottom corner of the image.
virtual void vtkImageItem::GetPosition | ( | float & | , |
float & | |||
) | [virtual] |
Get the position of the bottom corner of the image.
virtual void vtkImageItem::GetPosition | ( | float | [2] | ) | [virtual] |
Get the position of the bottom corner of the image.
float vtkImageItem::Position[2] [protected] |
Definition at line 70 of file vtkImageItem.h.
vtkImageData* vtkImageItem::Image [protected] |
Definition at line 72 of file vtkImageItem.h.