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

vtkTextureMapToBox Class Reference

generate 3D texture coordinates by mapping points into bounding box. More...

#include <vtkTextureMapToBox.h>

Inheritance diagram for vtkTextureMapToBox:

Inheritance graph
[legend]
Collaboration diagram for vtkTextureMapToBox:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetBox (float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)
void SetBox (float *box)
virtual float * GetBox ()
virtual void GetBox (float data[6])
virtual void SetRRange (float, float)
void SetRRange (float[2])
virtual float * GetRRange ()
virtual void GetRRange (float data[2])
virtual void SetSRange (float, float)
void SetSRange (float[2])
virtual float * GetSRange ()
virtual void GetSRange (float data[2])
virtual void SetTRange (float, float)
void SetTRange (float[2])
virtual float * GetTRange ()
virtual void GetTRange (float data[2])
virtual void SetAutomaticBoxGeneration (int)
virtual int GetAutomaticBoxGeneration ()
virtual void AutomaticBoxGenerationOn ()
virtual void AutomaticBoxGenerationOff ()

Static Public Methods

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

Protected Methods

 vtkTextureMapToBox ()
 ~vtkTextureMapToBox ()
 vtkTextureMapToBox (const vtkTextureMapToBox &)
void operator= (const vtkTextureMapToBox &)
void Execute ()

Protected Attributes

float Box [6]
float RRange [2]
float SRange [2]
float TRange [2]
int AutomaticBoxGeneration

Detailed Description

generate 3D texture coordinates by mapping points into bounding box.

Date:
2000/12/10 20:08:26
Revision:
1.10

vtkTextureMapToBox is a filter that generates 3D texture coordinates by mapping input dataset points onto a bounding box. The bounding box can either be user specified or generated automatically. If the box is generated automatically, all points will lie inside of it. If a point lies outside the bounding box (only for manual box specification), its generated texture coordinate will be mapped into the r-s-t texture coordinate range.

See also:
vtkTextureMapToPlane vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords


Member Function Documentation

virtual const char* vtkTextureMapToBox::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 vtkDataSetToDataSetFilter.

virtual int vtkTextureMapToBox::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 vtkDataSetToDataSetFilter.

int vtkTextureMapToBox::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 vtkDataSetToDataSetFilter.

vtkTextureMapToBox* vtkTextureMapToBox::New   [static]
 

Construct with r-s-t range=(0,1) and automatic box generation turned on.

Reimplemented from vtkDataSetSource.

void vtkTextureMapToBox::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 vtkSource.

vtkTextureMapToBox* vtkTextureMapToBox::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 vtkDataSetToDataSetFilter.

virtual void vtkTextureMapToBox::SetAutomaticBoxGeneration int    [virtual]
 

Turn on/off automatic bounding box generation.

void vtkTextureMapToBox::SetBox float    xmin,
float    xmax,
float    ymin,
float    ymax,
float    zmin,
float    zmax
 

Specify the bounding box to map into.

virtual void vtkTextureMapToBox::SetRRange float   ,
float   
[virtual]
 

Specify r-coordinate range for texture r-s-t coordinate triplet.

virtual void vtkTextureMapToBox::SetSRange float   ,
float   
[virtual]
 

Specify s-coordinate range for texture r-s-t coordinate triplet.

virtual void vtkTextureMapToBox::SetTRange float   ,
float   
[virtual]
 

Specify t-coordinate range for texture r-s-t coordinate triplet.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:33:42 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002