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

vtkPoints Class Reference

represent and manipulate 3D points. More...

#include <vtkPoints.h>

Inheritance diagram for vtkPoints:

Inheritance graph
[legend]
Collaboration diagram for vtkPoints:

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 GetNumberOfPoints ()
float * GetPoint (int id)
void GetPoint (int id, float x[3])
void GetPoint (int id, double x[3])
void SetPoint (int id, const float x[3])
void SetPoint (int id, const double x[3])
void SetPoint (int id, double x, double y, double z)
void InsertPoint (int id, const float x[3])
void InsertPoint (int id, const double x[3])
void InsertPoint (int id, double x, double y, double z)
int InsertNextPoint (const float x[3])
int InsertNextPoint (const double x[3])
int InsertNextPoint (double x, double y, double z)
void SetNumberOfPoints (int number)
void GetPoints (vtkIdList *ptId, vtkPoints *fp)
virtual void ComputeBounds ()
float * GetBounds ()
void GetBounds (float bounds[6])
void GetPoints (vtkIdList &ptId, vtkPoints &fp)

Static Public Methods

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

Protected Methods

 vtkPoints (int dataType=VTK_FLOAT)
 ~vtkPoints ()
 vtkPoints (const vtkPoints &)
void operator= (const vtkPoints &)

Protected Attributes

float Bounds [6]
vtkTimeStamp ComputeTime

Detailed Description

represent and manipulate 3D points.

Date:
2000/12/10 20:08:15
Revision:
1.53

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

Examples:
vtkPoints (examples)


Member Function Documentation

virtual void vtkPoints::ComputeBounds   [virtual]
 

Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.

void vtkPoints::GetBounds float    bounds[6]
 

Return the bounds of the points.

float* vtkPoints::GetBounds  
 

Return the bounds of the points.

virtual const char* vtkPoints::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 vtkPoints::GetNumberOfPoints   [inline]
 

Return number of points in array.

void vtkPoints::GetPoint int    id,
float    x[3]
[inline]
 

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

float* vtkPoints::GetPoint int    id [inline]
 

Return a pointer to a float point x[3] for a specific id.

void vtkPoints::GetPoints vtkIdList   ptId,
vtkPoints &    fp
[inline]
 

For legacy compatibility. Do not use.

void vtkPoints::GetPoints vtkIdList   ptId,
vtkPoints *    fp
 

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

int vtkPoints::InsertNextPoint const float    x[3] [inline]
 

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

void vtkPoints::InsertPoint int    id,
const float    x[3]
[inline]
 

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

virtual int vtkPoints::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 vtkPoints::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* vtkPoints::MakeObject   [virtual]
 

Create a copy of this object.

Implements vtkAttributeData.

vtkPoints* vtkPoints::New   [static]
 

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

Reimplemented from vtkObject.

Reimplemented in vtkFloatPoints.

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

vtkPoints* vtkPoints::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 vtkPoints::SetNumberOfPoints int    number [inline]
 

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

void vtkPoints::SetPoint int    id,
const float    x[3]
[inline]
 

Insert point into object. No range checking performed (fast!). Make sure you use SetNumberOfPoints() to allocate memory prior to using SetPoint().


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