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

vtkNormals Class Reference

represent and manipulate 3D normals. More...

#include <vtkNormals.h>

Inheritance diagram for vtkNormals:

Inheritance graph
[legend]
Collaboration diagram for vtkNormals:

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)
vtkAttributeDataMakeObject ()
int GetNumberOfNormals ()
float * GetNormal (int id)
void GetNormal (int id, float n[3])
void GetNormal (int id, double n[3])
void SetNormal (int id, const float n[3])
void SetNormal (int id, const double n[3])
void SetNormal (int id, double nx, double ny, double nz)
void InsertNormal (int id, const double n[3])
void InsertNormal (int id, float n[3])
void InsertNormal (int id, double nx, double ny, double nz)
int InsertNextNormal (const float n[3])
int InsertNextNormal (const double n[3])
int InsertNextNormal (double nx, double ny, double nz)
void SetNumberOfNormals (int number)
void GetNormals (vtkIdList *ptId, vtkNormals *fn)
void GetNormals (vtkIdList &ptId, vtkNormals &fn)

Static Public Methods

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

Protected Methods

 vtkNormals ()
 ~vtkNormals ()
 vtkNormals (const vtkNormals &)
void operator= (const vtkNormals &)

Detailed Description

represent and manipulate 3D normals.

Date:
2000/12/10 20:08:13
Revision:
1.46

vtkNormals represents 3D normals. The data model for vtkNormals is an array of nx-ny-nz triplets accessible by (point or cell) id. Each normal is assumed to have magnitude |n| = 1.

Examples:
vtkNormals (examples)


Member Function Documentation

virtual const char* vtkNormals::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 vtkAttributeData.

void vtkNormals::GetNormal int    id,
float    n[3]
[inline]
 

Copy normal components into user provided array n[3] for specified id.

float* vtkNormals::GetNormal int    id [inline]
 

Return a pointer to a float normal n[3] for a specific id.

void vtkNormals::GetNormals vtkIdList   ptId,
vtkNormals &    fn
[inline]
 

For legacy compatibility. Do not use.

void vtkNormals::GetNormals vtkIdList   ptId,
vtkNormals *    fn
 

Given a list of pt ids, return an array of normals.

int vtkNormals::GetNumberOfNormals   [inline]
 

Return number of normals in array.

int vtkNormals::InsertNextNormal const float    n[3] [inline]
 

Insert normal into next available slot. Returns id of slot.

void vtkNormals::InsertNormal int    id,
const double    n[3]
[inline]
 

Insert normal into object. Range checking performed and memory allocated as necessary.

virtual int vtkNormals::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 vtkAttributeData.

int vtkNormals::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 vtkAttributeData.

vtkAttributeData* vtkNormals::MakeObject   [inline, virtual]
 

Create a copy of this object.

Implements vtkAttributeData.

vtkNormals* vtkNormals::New   [static]
 

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

Reimplemented from vtkObject.

Reimplemented in vtkFloatNormals.

void vtkNormals::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 vtkAttributeData.

vtkNormals* vtkNormals::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 vtkAttributeData.

void vtkNormals::SetNormal int    id,
const float    n[3]
[inline]
 

Insert normal into object. No range checking performed (fast!). Make sure you use SetNumberOfNormals() to allocate memory prior to using SetNormal().

void vtkNormals::SetNumberOfNormals int    number [inline]
 

Specify the number of normals for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetNormal() method for fast insertion.


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