#include <vtkImageItem.h>
This vtkContextItem draws the supplied image in the scene. Optionally showing the label as a tooltip on mouse over.
Definition at line 33 of file vtkImageItem.h.
Public Types | |
typedef vtkContextItem | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual bool | Paint (vtkContext2D *painter) |
virtual bool | Hit (const vtkContextMouseEvent &mouse) |
virtual bool | MouseEnterEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseMoveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseLeaveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonPressEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse) |
void | SetImage (vtkImageData *image) |
void | SetScalarFunctor (double(*scalarFunction)(double, double)) |
virtual void | SetLabel (const char *) |
virtual char * | GetLabel () |
virtual vtkImageData * | GetImage () |
virtual void | SetDimensions (int, int, int, int) |
virtual void | SetDimensions (int[4]) |
virtual int * | GetDimensions () |
virtual void | GetDimensions (int &, int &, int &, int &) |
virtual void | GetDimensions (int[4]) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkImageItem * | SafeDownCast (vtkObject *o) |
static vtkImageItem * | New () |
Protected Member Functions | |
vtkImageItem () | |
~vtkImageItem () | |
Protected Attributes | |
int | Dimensions [4] |
int | LastPosition [2] |
char * | Label |
vtkImageData * | Image |
bool | MouseOver |
int | MouseButtonPressed |
double(* | ScalarFunction )(double, double) |
vtkImageItem::vtkImageItem | ( | ) | [protected] |
vtkImageItem::~vtkImageItem | ( | ) | [protected] |
virtual const char* vtkImageItem::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkContextItem.
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 | ( | vtkObject * | o | ) | [static] |
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.
Implements vtkContextItem.
virtual bool vtkImageItem::Hit | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Return true if the supplied x, y coordinate is inside the item.
Reimplemented from vtkContextItem.
virtual bool vtkImageItem::MouseEnterEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse enter event.
Reimplemented from vtkContextItem.
virtual bool vtkImageItem::MouseMoveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event.
Reimplemented from vtkContextItem.
virtual bool vtkImageItem::MouseLeaveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse leave event.
Reimplemented from vtkContextItem.
virtual bool vtkImageItem::MouseButtonPressEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button down event.
Reimplemented from vtkContextItem.
virtual bool vtkImageItem::MouseButtonReleaseEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button release event.
Reimplemented from vtkContextItem.
virtual void vtkImageItem::SetLabel | ( | const char * | ) | [virtual] |
Set the mouse over label for the item.
virtual char* vtkImageItem::GetLabel | ( | ) | [virtual] |
Get the mouse over label for the item.
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::SetDimensions | ( | int | , | |
int | , | |||
int | , | |||
int | ||||
) | [virtual] |
Set the dimensions of the item, bottom corner, width, height.
virtual void vtkImageItem::SetDimensions | ( | int | [4] | ) | [virtual] |
Set the dimensions of the item, bottom corner, width, height.
virtual int* vtkImageItem::GetDimensions | ( | ) | [virtual] |
Get the dimensions of the item, bottom corner, width, height.
virtual void vtkImageItem::GetDimensions | ( | int & | , | |
int & | , | |||
int & | , | |||
int & | ||||
) | [virtual] |
Get the dimensions of the item, bottom corner, width, height.
virtual void vtkImageItem::GetDimensions | ( | int | [4] | ) | [virtual] |
Get the dimensions of the item, bottom corner, width, height.
void vtkImageItem::SetScalarFunctor | ( | double(*)(double, double) | scalarFunction | ) |
int vtkImageItem::Dimensions[4] [protected] |
Definition at line 101 of file vtkImageItem.h.
int vtkImageItem::LastPosition[2] [protected] |
Definition at line 103 of file vtkImageItem.h.
char* vtkImageItem::Label [protected] |
Definition at line 105 of file vtkImageItem.h.
vtkImageData* vtkImageItem::Image [protected] |
Definition at line 106 of file vtkImageItem.h.
bool vtkImageItem::MouseOver [protected] |
Definition at line 108 of file vtkImageItem.h.
int vtkImageItem::MouseButtonPressed [protected] |
Definition at line 109 of file vtkImageItem.h.
double(* vtkImageItem::ScalarFunction)(double, double) [protected] |