Public Member Functions | Public Attributes

PolyPt Class Reference

Search for all occurrences

Detailed Description

Represents a single point of a PolyLine.

All methods of this class are implemented by the system.

See also:
PolyLine

#include <polyshp.h>

Inheritance diagram for PolyPt:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

PolyPt ( ) [inline]

Constructor.

All data members are initiated to their corresponding zero values.

{ p = Point3(0,0,0); flags = 0; flags2 = 0; aux = 0; }
PolyPt ( Point3  ip,
DWORD  f = 0,
int  a = 0,
DWORD  f2 = 0 
) [inline]

Constructor.

All data members are initialized to the input data.

{ p = ip; flags = f; aux = a; flags2 = f2;}

Member Function Documentation

MtlID GetMatID ( ) [inline]

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

void SetMatID ( MtlID  id ) [inline]

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

Parameters:
id The ID to set to.
{flags2 &= 0xFFFF; flags2 |= (DWORD)(id<<POLYPT_MATID_SHIFT);}

Member Data Documentation

The location of the point.

DWORD flags
DWORD flags2
int aux

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


PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt
PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt PolyPt