QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_3dPointArray Class Reference

#include <opennurbs_array.h>

Inheritance diagram for ON_3dPointArray:
ON_SimpleArray< ON_3dPoint > ON_Polyline

Public Member Functions

ON_BoundingBox BoundingBox () const
 
bool Create (int point_dimension, int bRational, int point_count, int point_stride, const double *points)
 
bool Create (int point_dimension, int bRational, int point_count, int point_stride, const float *points)
 
bool GetBBox (double boxmin[3], double boxmax[3], int bGrowBox=false) const
 
bool GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
bool GetClosestPoint (ON_3dPoint P, int *closest_point_index, double maximum_distance=0.0) const
 
bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
 ON_3dPointArray ()
 
 ON_3dPointArray (const ON_SimpleArray< ON_3dPoint > &)
 
 ON_3dPointArray (const ON_SimpleArray< ON_3fPoint > &)
 
 ON_3dPointArray (int)
 
ON_3dPointArrayoperator= (const ON_3dPointArray &)
 
ON_3dPointArrayoperator= (const ON_SimpleArray< ON_3fPoint > &)
 
bool Rotate (double angle_in_radians, const ON_3dVector &axis_of_rotation, const ON_3dPoint &center_of_rotation)
 
bool Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis_of_rotation, const ON_3dPoint &center_of_rotation)
 
bool SwapCoordinates (int i, int j)
 
bool Transform (const ON_Xform &xform)
 
bool Translate (const ON_3dVector &delta)
 
- Public Member Functions inherited from ON_SimpleArray< ON_3dPoint >
void Append (const ON_3dPoint &)
 
void Append (int, const ON_3dPoint *)
 
ON_3dPointAppendNew ()
 
ON_3dPointArray ()
 
const ON_3dPointArray () const
 
ON_3dPointAt (int)
 
const ON_3dPointAt (int) const
 
int BinarySearch (const ON_3dPoint *, int(*)(const ON_3dPoint *, const ON_3dPoint *)) const
 
int Capacity () const
 
int Count () const
 
ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
void Destroy ()
 
void EmergencyDestroy (void)
 
void Empty ()
 
ON_3dPointFirst ()
 
const ON_3dPointFirst () const
 
bool HeapSort (int(*)(const ON_3dPoint *, const ON_3dPoint *))
 
void Insert (int, const ON_3dPoint &)
 
ON_3dPointKeepArray ()
 
ON_3dPointLast ()
 
const ON_3dPointLast () const
 
void MemSet (unsigned char)
 
int NewCapacity () const
 
 ON_SimpleArray ()
 
 ON_SimpleArray (const ON_SimpleArray< ON_3dPoint > &)
 
 ON_SimpleArray (int)
 
 operator const ON_3dPoint * () const
 
 operator ON_3dPoint * ()
 
virtual ON_SimpleArray< ON_3dPoint > & operator= (const ON_SimpleArray< ON_3dPoint > &)
 
ON_3dPointoperator[] (int)
 
const ON_3dPointoperator[] (int) const
 
bool Permute (const int *)
 
bool QuickSort (int(*)(const ON_3dPoint *, const ON_3dPoint *))
 
virtual ON_3dPointRealloc (ON_3dPoint *, int)
 
void Remove ()
 
virtual void Remove (int)
 
void Reserve (int)
 
void Reverse ()
 
int Search (const ON_3dPoint &) const
 
int Search (const ON_3dPoint *, int(*)(const ON_3dPoint *, const ON_3dPoint *)) const
 
void SetArray (ON_3dPoint *)
 
void SetCapacity (int)
 
void SetCount (int)
 
void Shrink ()
 
unsigned int SizeOfArray () const
 
bool Sort (ON::sort_algorithm, int *, int(*)(const ON_3dPoint *, const ON_3dPoint *)) const
 
bool Sort (ON::sort_algorithm, int *, int(*)(const ON_3dPoint *, const ON_3dPoint *, void *), void *) const
 
void Swap (int, int)
 
void Zero ()
 
virtual ~ON_SimpleArray ()
 

Additional Inherited Members

- Protected Member Functions inherited from ON_SimpleArray< ON_3dPoint >
void Move (int, int, int)
 
- Protected Attributes inherited from ON_SimpleArray< ON_3dPoint >
ON_3dPointm_a
 
int m_capacity
 
int m_count
 

Constructor & Destructor Documentation

◆ ON_3dPointArray() [1/4]

ON_3dPointArray::ON_3dPointArray ( )

◆ ON_3dPointArray() [2/4]

ON_3dPointArray::ON_3dPointArray ( int c)

◆ ON_3dPointArray() [3/4]

ON_3dPointArray::ON_3dPointArray ( const ON_SimpleArray< ON_3dPoint > & src)

◆ ON_3dPointArray() [4/4]

ON_3dPointArray::ON_3dPointArray ( const ON_SimpleArray< ON_3fPoint > & src)

Member Function Documentation

◆ BoundingBox()

ON_BoundingBox ON_3dPointArray::BoundingBox ( ) const

◆ Create() [1/2]

bool ON_3dPointArray::Create ( int point_dimension,
int bRational,
int point_count,
int point_stride,
const double * points )

◆ Create() [2/2]

bool ON_3dPointArray::Create ( int point_dimension,
int bRational,
int point_count,
int point_stride,
const float * points )

◆ GetBBox()

bool ON_3dPointArray::GetBBox ( double boxmin[3],
double boxmax[3],
int bGrowBox = false ) const

◆ GetBoundingBox()

bool ON_3dPointArray::GetBoundingBox ( ON_BoundingBox & bbox,
int bGrowBox = false ) const

◆ GetClosestPoint()

bool ON_3dPointArray::GetClosestPoint ( ON_3dPoint P,
int * closest_point_index,
double maximum_distance = 0.0 ) const

◆ GetTightBoundingBox()

bool ON_3dPointArray::GetTightBoundingBox ( ON_BoundingBox & tight_bbox,
int bGrowBox = false,
const ON_Xform * xform = 0 ) const

◆ operator=() [1/2]

ON_3dPointArray & ON_3dPointArray::operator= ( const ON_3dPointArray & src)

◆ operator=() [2/2]

ON_3dPointArray & ON_3dPointArray::operator= ( const ON_SimpleArray< ON_3fPoint > & src)

◆ Rotate() [1/2]

bool ON_3dPointArray::Rotate ( double angle_in_radians,
const ON_3dVector & axis_of_rotation,
const ON_3dPoint & center_of_rotation )

◆ Rotate() [2/2]

bool ON_3dPointArray::Rotate ( double sin_angle,
double cos_angle,
const ON_3dVector & axis_of_rotation,
const ON_3dPoint & center_of_rotation )

◆ SwapCoordinates()

bool ON_3dPointArray::SwapCoordinates ( int i,
int j )

◆ Transform()

bool ON_3dPointArray::Transform ( const ON_Xform & xform)

◆ Translate()

bool ON_3dPointArray::Translate ( const ON_3dVector & delta)

The documentation for this class was generated from the following files: