VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkLabeledContourMapper Class Reference

Draw labeled isolines. More...

#include <vtkLabeledContourMapper.h>

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

List of all members.

Public Types

typedef vtkMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkLabeledContourMapperNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Render (vtkRenderer *ren, vtkActor *act)
virtual void SetTextProperty (vtkTextProperty *tprop)
void SetInputData (vtkPolyData *in)
vtkPolyDataGetInput ()
virtual doubleGetBounds ()
virtual void GetBounds (double bounds[6])
virtual void SetTextProperties (vtkTextPropertyCollection *coll)
virtual vtkTextPropertyCollectionGetTextProperties ()
virtual void SetLabelVisibility (bool)
virtual bool GetLabelVisibility ()
virtual void LabelVisibilityOn ()
virtual void LabelVisibilityOff ()

Static Public Member Functions

static vtkLabeledContourMapperNew ()
static int IsTypeOf (const char *type)
static vtkLabeledContourMapperSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
bool LabelVisibility
vtkIdType NumberOfTextActors
vtkIdType NumberOfUsedTextActors
vtkTextActor3D ** TextActors
vtkNew< vtkPolyDataMapperPolyDataMapper
vtkSmartPointer
< vtkTextPropertyCollection
TextProperties
floatStencilQuads
vtkIdType StencilQuadsSize
unsigned intStencilQuadIndices
vtkIdType StencilQuadIndicesSize
vtkTimeStamp BuildTime
vtkGetNewMacro(PolyDataMapper,
vtkPolyDataMapper) protected 
~vtkLabeledContourMapper ()
virtual void ComputeBounds ()
virtual int FillInputPortInformation (int, vtkInformation *)
void Reset ()
bool CheckInputs (vtkRenderer *ren)
bool CheckRebuild (vtkRenderer *ren, vtkActor *act)
bool PrepareRender (vtkRenderer *ren, vtkActor *act)
bool PlaceLabels ()
bool ResolveLabels ()
bool CreateLabels ()
bool BuildStencilQuads ()
virtual bool ApplyStencil (vtkRenderer *ren, vtkActor *act)
bool RenderPolyData (vtkRenderer *ren, vtkActor *act)
virtual bool RemoveStencil ()
bool RenderLabels (vtkRenderer *ren, vtkActor *act)
bool AllocateTextActors (vtkIdType num)
bool FreeTextActors ()
vtkTextPropertyGetTextPropertyForCellId (vtkIdType cellId) const
void FreeStencilQuads ()

Detailed Description

Draw labeled isolines.

Draw isolines with 3D inline labels.

The lines in the input polydata will be drawn with labels displaying the scalar value.

For this mapper to function properly, stenciling must be enabled in the render window (it is disabled by default). Otherwise the lines will be drawn through the labels.

Tests:
vtkLabeledContourMapper (Tests)

Definition at line 46 of file vtkLabeledContourMapper.h.


Member Typedef Documentation

Reimplemented from vtkMapper.

Reimplemented in vtkOpenGLLabeledContourMapper.

Definition at line 50 of file vtkLabeledContourMapper.h.


Constructor & Destructor Documentation

The polydata mapper used to render the contours.


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

Reimplemented in vtkOpenGLLabeledContourMapper.

static int vtkLabeledContourMapper::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 vtkMapper.

Reimplemented in vtkOpenGLLabeledContourMapper.

virtual int vtkLabeledContourMapper::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 vtkMapper.

Reimplemented in vtkOpenGLLabeledContourMapper.

Reimplemented from vtkMapper.

Reimplemented in vtkOpenGLLabeledContourMapper.

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

Reimplemented from vtkMapper.

Reimplemented in vtkOpenGLLabeledContourMapper.

Reimplemented from vtkMapper.

Reimplemented in vtkOpenGLLabeledContourMapper.

void vtkLabeledContourMapper::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 vtkMapper.

virtual void vtkLabeledContourMapper::Render ( vtkRenderer ren,
vtkActor a 
) [virtual]

Method initiates the mapping process. Generally sent by the actor as each frame is rendered.

Implements vtkMapper.

Specify the input data to map.

Specify the input data to map.

Reimplemented from vtkMapper.

Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).

Reimplemented from vtkMapper.

virtual void vtkLabeledContourMapper::GetBounds ( double  bounds[6]) [virtual]

Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).

Reimplemented from vtkMapper.

virtual void vtkLabeledContourMapper::SetTextProperty ( vtkTextProperty tprop) [virtual]

The text property used to label the lines. Note that both vertical and horizontal justifications will be reset to "Centered" prior to rendering.

Note:
This is a convenience method that clears TextProperties and inserts the argument as the only property in the collection.
See also:
SetTextProperties

The text properties used to label the lines. Note that both vertical and horizontal justifications will be reset to "Centered" prior to rendering. The collection is iterated through as the labels are generated, such that the first line (cell) in the dataset is labeled using the first text property in the collection, the second line is labeled with the second property, and so on. If the number of cells exceeds the number of properties, the property collection is repeated.

See also:
SetTextProperty

The text properties used to label the lines. Note that both vertical and horizontal justifications will be reset to "Centered" prior to rendering. The collection is iterated through as the labels are generated, such that the first line (cell) in the dataset is labeled using the first text property in the collection, the second line is labeled with the second property, and so on. If the number of cells exceeds the number of properties, the property collection is repeated.

See also:
SetTextProperty
virtual void vtkLabeledContourMapper::SetLabelVisibility ( bool  ) [virtual]

If true, labels will be placed and drawn during rendering. Otherwise, only the mapper returned by GetPolyDataMapper() will be rendered. The default is to draw labels.

virtual bool vtkLabeledContourMapper::GetLabelVisibility ( ) [virtual]

If true, labels will be placed and drawn during rendering. Otherwise, only the mapper returned by GetPolyDataMapper() will be rendered. The default is to draw labels.

virtual void vtkLabeledContourMapper::LabelVisibilityOn ( ) [virtual]

If true, labels will be placed and drawn during rendering. Otherwise, only the mapper returned by GetPolyDataMapper() will be rendered. The default is to draw labels.

virtual void vtkLabeledContourMapper::LabelVisibilityOff ( ) [virtual]

If true, labels will be placed and drawn during rendering. Otherwise, only the mapper returned by GetPolyDataMapper() will be rendered. The default is to draw labels.

virtual void vtkLabeledContourMapper::ComputeBounds ( ) [virtual]

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

Reimplemented from vtkAlgorithm.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

virtual bool vtkLabeledContourMapper::ApplyStencil ( vtkRenderer ren,
vtkActor act 
) [virtual]

The polydata mapper used to render the contours.

Reimplemented in vtkOpenGLLabeledContourMapper.

The polydata mapper used to render the contours.

virtual bool vtkLabeledContourMapper::RemoveStencil ( ) [virtual]

The polydata mapper used to render the contours.

Reimplemented in vtkOpenGLLabeledContourMapper.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.

The polydata mapper used to render the contours.


Member Data Documentation

The polydata mapper used to render the contours.

Definition at line 129 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 130 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 131 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 132 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 134 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 135 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 137 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 138 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 139 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Definition at line 140 of file vtkLabeledContourMapper.h.

The polydata mapper used to render the contours.

Reimplemented from vtkMapper.

Definition at line 143 of file vtkLabeledContourMapper.h.


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