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

Definition at line 61 of file vtkPoints.h.


Constructor & Destructor Documentation

vtkPoints::vtkPoints int    dataType = VTK_FLOAT [protected]
 

vtkPoints::~vtkPoints   [inline, protected]
 

Definition at line 130 of file vtkPoints.h.

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

Definition at line 131 of file vtkPoints.h.


Member Function Documentation

vtkPoints* vtkPoints::New int    dataType [static]
 

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.

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

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

Create a copy of this object.

Reimplemented from vtkAttributeData.

int vtkPoints::GetNumberOfPoints   [inline]
 

Return number of points in array.

Definition at line 76 of file vtkPoints.h.

Referenced by vtkPointSet::GetNumberOfPoints().

float* vtkPoints::GetPoint int    id [inline]
 

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

Definition at line 79 of file vtkPoints.h.

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

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

Definition at line 82 of file vtkPoints.h.

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

Definition at line 83 of file vtkPoints.h.

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

Definition at line 88 of file vtkPoints.h.

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

Definition at line 89 of file vtkPoints.h.

void vtkPoints::SetPoint int    id,
double    x,
double    y,
double    z
[inline]
 

Definition at line 145 of file vtkPoints.h.

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

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

Definition at line 94 of file vtkPoints.h.

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

Definition at line 95 of file vtkPoints.h.

void vtkPoints::InsertPoint int    id,
double    x,
double    y,
double    z
[inline]
 

Definition at line 154 of file vtkPoints.h.

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

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

Definition at line 99 of file vtkPoints.h.

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

Definition at line 101 of file vtkPoints.h.

int vtkPoints::InsertNextPoint double    x,
double    y,
double    z
[inline]
 

Definition at line 164 of file vtkPoints.h.

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.

Definition at line 139 of file vtkPoints.h.

void vtkPoints::GetPoints vtkIdList   ptId,
vtkPoints *    fp
 

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

virtual void vtkPoints::ComputeBounds   [virtual]
 

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

float* vtkPoints::GetBounds  
 

Return the bounds of the points.

void vtkPoints::GetBounds float    bounds[6]
 

Return the bounds of the points.

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

For legacy compatibility. Do not use.

Definition at line 124 of file vtkPoints.h.

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

Definition at line 132 of file vtkPoints.h.


Member Data Documentation

float vtkPoints::Bounds[6] [protected]
 

Definition at line 134 of file vtkPoints.h.

vtkTimeStamp vtkPoints::ComputeTime [protected]
 

Definition at line 135 of file vtkPoints.h.


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