#include <polyline.h>
Public Types | |
| enum | CHUNKS { POLYLINE_CHUNKID = 0x00000010, VERTS_CHUNKID = 0x00000020, SEGMENTS_CHUNKID = 0x00000030 } |
| Enum chunks. More... | |
Public Member Functions | |
| void | SetNumVerts (int nv, bool keep=false) |
| Sets the number of vertices in this polyline. | |
| int | GetNumVerts () |
| Returns the number of vertices in this polyline. | |
| void | SetVertPosition (int i_v, GMT::Point3F p) |
| Sets the position of the vertex i_v. | |
| void | SetVert (int i_v, Vert v) |
| Sets the vertex i_v. | |
| Vert | GetVert (int i_v) |
| Returns the specified vertex. | |
| GMT::Point3F | GetVertPosition (int i_v) |
| Returns the position of the vertex i_v. | |
| void | SetNumSegments (int ns, bool keep=false) |
| Sets the number of segments in this polyline. | |
| int | GetNumSegments () |
| Returns the number of segments in this polyline. | |
| void | SetSegment (int i_s, int v0, int v1) |
| Sets the segment i_s. | |
| Segment | GetSegment (int i_s) |
| Returns the segment i_s. | |
| void | DeleteThis () |
| Deletes this class and all its members. | |
| int | Save (SceneSave *scene_save) |
| Saves the info for this class. | |
| int | Load (SceneLoad *scene_load) |
| Loads the info for this class. | |
Public Attributes | |
| int | num_verts |
| The total number of vertices in this polyline. | |
| Vert * | verts |
| The vertices in this polyline. | |
| int | num_segments |
| The total number of segments in this polyline. | |
| Segment * | segments |
| The segments in this polyline. | |
A polyline is a collection of vertices and segments. A vertex can be connected to 1, 2 or more vertices with segments.
| void ScEng::PolyLine::SetNumVerts | ( | int | nv, | |
| bool | keep = false | |||
| ) |
Sets the number of vertices in this polyline.
Sets the number of verts and allocates the memory for the verts array.
| nv | the new number of verts | |
| keep | if true, the verts are kept, if false, they are deleted. |
| void ScEng::PolyLine::SetVertPosition | ( | int | i_v, | |
| GMT::Point3F | p | |||
| ) |
Sets the position of the vertex i_v.
| i_v | the index of the vertex to set | |
| p | the new position for the vertex i_v |
| void ScEng::PolyLine::SetVert | ( | int | i_v, | |
| Vert | v | |||
| ) |
Sets the vertex i_v.
| i_v | the index of the vertex to set | |
| v | the vertex |
| Vert ScEng::PolyLine::GetVert | ( | int | i_v | ) |
Returns the specified vertex.
| i_v | the index of the vertex |
| GMT::Point3F ScEng::PolyLine::GetVertPosition | ( | int | i_v | ) |
Returns the position of the vertex i_v.
| i_v | the index of the vertex |
| void ScEng::PolyLine::SetNumSegments | ( | int | ns, | |
| bool | keep = false | |||
| ) |
Sets the number of segments in this polyline.
Sets the number of segments and allocates the memory for the segments array.
| ns | the new number of verts | |
| keep | if true, the segments are kept, if false, they are deleted. |
| void ScEng::PolyLine::SetSegment | ( | int | i_s, | |
| int | v0, | |||
| int | v1 | |||
| ) |
Sets the segment i_s.
| i_s | the index of the segment to set | |
| v0 | the new value of vertex 0 in segment i_s | |
| v1 | the new value of vertex 1 in segment i_s |
1.5.1-p1