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

vtkVectors Class Reference

represent and manipulate 3D vectors. More...

#include <vtkVectors.h>

Inheritance diagram for vtkVectors:

Inheritance graph
[legend]
Collaboration diagram for vtkVectors:

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 GetNumberOfVectors ()
float * GetVector (int id)
void GetVector (int id, float v[3])
void GetVector (int id, double v[3])
void SetVector (int id, const float v[3])
void SetVector (int id, const double v[3])
void SetVector (int id, double vx, double vy, double vz)
void InsertVector (int id, const float v[3])
void InsertVector (int id, const double v[3])
void InsertVector (int id, double vx, double vy, double vz)
int InsertNextVector (const float v[3])
int InsertNextVector (const double v[3])
int InsertNextVector (double vx, double vy, double vz)
void SetNumberOfVectors (int number)
void ComputeMaxNorm ()
double GetMaxNorm ()
void GetVectors (vtkIdList *ptId, vtkVectors *fv)
void GetVectors (vtkIdList &ptId, vtkVectors &fv)

Static Public Methods

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

Protected Methods

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

Protected Attributes

double MaxNorm
vtkTimeStamp ComputeTime

Detailed Description

represent and manipulate 3D vectors.

Date:
2000/12/10 20:08:20
Revision:
1.51

vtkVectors represents 3D vectors. The data model for vtkVectors is an array of vx-vy-vz triplets accessible by (point or cell) id.

Examples:
vtkVectors (examples)


Member Function Documentation

void vtkVectors::ComputeMaxNorm  
 

Compute the largest norm for these vectors.

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

double vtkVectors::GetMaxNorm  
 

Return the maximum norm for these vectors.

int vtkVectors::GetNumberOfVectors   [inline]
 

Return number of vectors in array.

void vtkVectors::GetVector int    id,
float    v[3]
[inline]
 

Copy vector components into user provided array v[3] for specified id.

float* vtkVectors::GetVector int    id [inline]
 

Return a pointer to a float vector v[3] for a specific id.

void vtkVectors::GetVectors vtkIdList   ptId,
vtkVectors &    fv
[inline]
 

For legacy compatibility. Do not use.

void vtkVectors::GetVectors vtkIdList   ptId,
vtkVectors *    fv
 

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

int vtkVectors::InsertNextVector const float    v[3] [inline]
 

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

void vtkVectors::InsertVector int    id,
const float    v[3]
[inline]
 

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

virtual int vtkVectors::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 vtkVectors::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* vtkVectors::MakeObject   [inline, virtual]
 

Create the same type object as this (virtual constructor).

Implements vtkAttributeData.

vtkVectors* vtkVectors::New   [static]
 

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

Reimplemented from vtkObject.

Reimplemented in vtkFloatVectors.

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

vtkVectors* vtkVectors::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 vtkVectors::SetNumberOfVectors int    number [inline]
 

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

void vtkVectors::SetVector int    id,
const float    v[3]
[inline]
 

Insert vector into object. No range checking performed (fast!). Make sure you use SetNumberOfVectors() to allocate memory prior to using SetVector().


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