Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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)

Definition at line 62 of file vtkNormals.h.


Constructor & Destructor Documentation

vtkNormals::vtkNormals   [protected]
 

vtkNormals::~vtkNormals   [inline, protected]
 

Definition at line 130 of file vtkNormals.h.

vtkNormals::vtkNormals const vtkNormals &    [inline, protected]
 

Definition at line 131 of file vtkNormals.h.


Member Function Documentation

vtkNormals* vtkNormals::New int    dataType [static]
 

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.

Referenced by MakeObject().

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.

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.

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.

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::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.

vtkAttributeData* vtkNormals::MakeObject   [inline, virtual]
 

Create a copy of this object.

Reimplemented from vtkAttributeData.

Definition at line 72 of file vtkNormals.h.

int vtkNormals::GetNumberOfNormals   [inline]
 

Return number of normals in array.

Definition at line 76 of file vtkNormals.h.

float* vtkNormals::GetNormal int    id [inline]
 

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

Definition at line 80 of file vtkNormals.h.

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

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

Definition at line 85 of file vtkNormals.h.

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

Definition at line 87 of file vtkNormals.h.

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().

Definition at line 93 of file vtkNormals.h.

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

Definition at line 95 of file vtkNormals.h.

void vtkNormals::SetNormal int    id,
double    nx,
double    ny,
double    nz
[inline]
 

Definition at line 143 of file vtkNormals.h.

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

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

Definition at line 101 of file vtkNormals.h.

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

Definition at line 103 of file vtkNormals.h.

void vtkNormals::InsertNormal int    id,
double    nx,
double    ny,
double    nz
[inline]
 

Definition at line 152 of file vtkNormals.h.

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

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

Definition at line 108 of file vtkNormals.h.

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

Definition at line 110 of file vtkNormals.h.

int vtkNormals::InsertNextNormal double    nx,
double    ny,
double    nz
[inline]
 

Definition at line 162 of file vtkNormals.h.

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.

Definition at line 137 of file vtkNormals.h.

void vtkNormals::GetNormals vtkIdList   ptId,
vtkNormals *    fn
 

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

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

For legacy compatibility. Do not use.

Definition at line 124 of file vtkNormals.h.

void vtkNormals::operator= const vtkNormals &    [inline, protected]
 

Definition at line 132 of file vtkNormals.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:55:05 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001