PolyPt Class Reference

PolyPt Class Reference

#include <polyshp.h>

Class Description

Represents a single point of a PolyLine.

All methods of this class are implemented by the system.

See also
PolyLine
+ Inheritance diagram for PolyPt:

Public Member Functions

 PolyPt ()
 Constructor. More...
 
 PolyPt (Point3 ip, DWORD f=0, int a=0, DWORD f2=0)
 Constructor. More...
 
MtlID GetMatID ()
 Gets the material ID on a per-segment basis within the spline or polyline. More...
 
void SetMatID (MtlID id)
 Sets the material ID on a per-segment basis within the spline or polyline. More...
 

Public Attributes

Point3 p
 The location of the point. More...
 
DWORD flags
 See Predefined PolyPt Flags. More...
 
DWORD flags2
 See Predefined PolyPt flags2. More...
 
int aux
 Auxiliary data attached to this point (usually mesh vertex number for capping) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Constructor & Destructor Documentation

PolyPt ( )
inline

Constructor.

All data members are initiated to their corresponding zero values.

138 { p = Point3(0,0,0); flags = 0; flags2 = 0; aux = 0; }
DWORD flags2
See Predefined PolyPt flags2.
Definition: polyshp.h:134
Definition: point3.h:55
DWORD flags
See Predefined PolyPt Flags.
Definition: polyshp.h:133
int aux
Auxiliary data attached to this point (usually mesh vertex number for capping)
Definition: polyshp.h:135
Point3 p
The location of the point.
Definition: polyshp.h:132
PolyPt ( Point3  ip,
DWORD  f = 0,
int  a = 0,
DWORD  f2 = 0 
)
inline

Constructor.

All data members are initialized to the input data.

141 { p = ip; flags = f; aux = a; flags2 = f2;}
DWORD flags2
See Predefined PolyPt flags2.
Definition: polyshp.h:134
DWORD flags
See Predefined PolyPt Flags.
Definition: polyshp.h:133
int aux
Auxiliary data attached to this point (usually mesh vertex number for capping)
Definition: polyshp.h:135
Point3 p
The location of the point.
Definition: polyshp.h:132

Member Function Documentation

MtlID GetMatID ( )
inline

Gets the material ID on a per-segment basis within the spline or polyline.

145 {return (int)((flags2>>POLYPT_MATID_SHIFT)&POLYPT_MATID_MASK);}
#define POLYPT_MATID_MASK
Definition: polyshp.h:121
DWORD flags2
See Predefined PolyPt flags2.
Definition: polyshp.h:134
#define POLYPT_MATID_SHIFT
Definition: polyshp.h:120
void SetMatID ( MtlID  id)
inline

Sets the material ID on a per-segment basis within the spline or polyline.

Parameters
idThe ID to set to.
150 {flags2 &= 0xFFFF; flags2 |= (DWORD)(id<<POLYPT_MATID_SHIFT);}
DWORD flags2
See Predefined PolyPt flags2.
Definition: polyshp.h:134
#define POLYPT_MATID_SHIFT
Definition: polyshp.h:120

Member Data Documentation

Point3 p

The location of the point.

DWORD flags
DWORD flags2
int aux

Auxiliary data attached to this point (usually mesh vertex number for capping)