VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkContextClip Class Reference

all children of this item are clipped by the specified area. More...

#include <vtkContextClip.h>

Inheritance diagram for vtkContextClip:
Inheritance graph
[legend]
Collaboration diagram for vtkContextClip:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkAbstractContextItem Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkContextClipNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void Update ()
virtual bool Paint (vtkContext2D *painter)
virtual void SetClip (float x, float y, float width, float height)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkContextClipSafeDownCast (vtkObjectBase *o)
static vtkContextClipNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkContextClip ()
 ~vtkContextClip ()

Protected Attributes

float Dims [4]

Detailed Description

all children of this item are clipped by the specified area.

This class can be used to clip the rendering of an item inside a rectangular area.

Definition at line 32 of file vtkContextClip.h.


Member Typedef Documentation

Reimplemented from vtkAbstractContextItem.

Definition at line 35 of file vtkContextClip.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkContextClip::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 vtkAbstractContextItem.

virtual int vtkContextClip::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 vtkAbstractContextItem.

Reimplemented from vtkAbstractContextItem.

virtual vtkObjectBase* vtkContextClip::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkAbstractContextItem.

Reimplemented from vtkAbstractContextItem.

virtual void vtkContextClip::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 vtkAbstractContextItem.

static vtkContextClip* vtkContextClip::New ( ) [static]

Creates a vtkContextClip object.

Reimplemented from vtkObject.

virtual void vtkContextClip::Update ( ) [virtual]

Perform any updates to the item that may be necessary before rendering. The scene should take care of calling this on all items before their Paint function is invoked.

Reimplemented from vtkAbstractContextItem.

virtual bool vtkContextClip::Paint ( vtkContext2D painter) [virtual]

Paint event for the item, called whenever the item needs to be drawn.

Reimplemented from vtkAbstractContextItem.

virtual void vtkContextClip::SetClip ( float  x,
float  y,
float  width,
float  height 
) [virtual]

Set the origin, width and height of the clipping rectangle. These are in pixel coordinates.


Member Data Documentation

float vtkContextClip::Dims[4] [protected]

Definition at line 58 of file vtkContextClip.h.


The documentation for this class was generated from the following file: