|typedef std::vector< Point3D >||base_class|
|The base type. (Naming according to boost convention.) |
|Polygon3D||getMovedPath (double dist) const|
|virtual const UINT32||getUsedMemory () const|
|bool||operator== (const Polygon3D &other) const|
|Equality predicate. |
|Constructor for an empty polygon. |
|Polygon3D (const Point3D &)|
|Convenience constructor for a polygon with one Point. |
|Polygon3D (const Point3D &, const Point3D &)|
|Convenience constructor for a polygon with two Points. |
|Polygon3D (const Point3D &, const Point3D &, const Point3D &)|
|Convenience constructor for a polygon with three Points. |
|Polygon3D (const base_class &)|
|Copy constructor from a std::vector. |
|std::istream &||read (std::istream &is, UINT32 version)|
|Reads this object from an input stream. |
|void||read (const BYTE *&buf, UINT32 version)|
|Reads this object from a memory buffer. |
|std::ostream &||write (std::ostream &os, UINT32 version) const|
|Writes this object to an output stream. |
|void||write (BYTE *&buf, UINT32 version) const|
|Writes this object to a memory buffer and increments the buffer pointer. |
|std::streamsize||getSerializedSize (UINT32 version) const|
|Returns the number of bytes this object needs in serialized form. |
|std::string||toString () const|
|Text output for debugging; opposite of fromString(). |
|void||fromString (const std::string &polyString)|
|Fill this Polygon3D by parsing the given string and extracting a list of points from the string. |
|void datatypes::Polygon3D::fromString||(||const std::string &||polyString||)|
Fill this Polygon3D by parsing the given string and extracting a list of points from the string.
This is the opposite of toString().
Syntax example: (0.0 -2.0 0) (10 -1 0) (10 1 0) (0.0 2.0 0) (0.0 -2.0 0)
This results in a polygon with five points where the last is identical to the first so that the polygon is a closed polygon.
Internal syntax rules: The polygon is parsed from a list of floating point literals, separated by any of the following characters: " [ ( , ; ) ] as given by Polygon2D::getSeparatorCharacters(). If the number of floating point literals is not divisible by three, a std::runtime_error is thrown.
DEPRECATED - the semantics of this function is very very unclear and it will be removed soon.
Get a polygon which has a constant distance to this polygon. This function is intended to create a path with a more or less constant width. The polygon should not have succeeding points with reversing direction (zick-zack). This function operates in the x-y-plane only.
Returns the number of bytes this object needs in serialized form.
|bool datatypes::Polygon3D::operator==||(||const Polygon3D &||other||)|| const
Reads this object from an input stream.
Reads this object from a memory buffer.
Writes this object to an output stream.
Writes this object to a memory buffer and increments the buffer pointer.