GTXclient C++ API
GTXserver-16.0.2
|
Class for handling individual objects of wireframes. More...
#include <GTXWireframeObject.hpp>
Public Member Functions | |
GTXWireframeObject () | |
Empty Constructor. | |
GTXWireframeObject (const GTXWireframeObject &object) | |
Copy Constructor. | |
GTXWireframeObject | operator= (const GTXWireframeObject &object) |
Equal Operator. | |
~GTXWireframeObject () | |
Destructor. | |
int | GetVerticesNumber () const |
Get the number of vertices of a Wireframe Object. More... | |
double | GetVertexX (int rank) const |
Get X value of a Wireframe Object vertex. More... | |
double | GetVertexY (int rank) const |
Get Y value of a Wireframe Object vertex. More... | |
double | GetVertexZ (int rank) const |
Get Z value of a Wireframe Object vertex. More... | |
int | GetTrianglesNumber () const |
Get the number of triangles of a Wireframe Object. More... | |
int | GetTrianglePt1 (int rank) const |
Get first point index of a Wireframe Object triangle. More... | |
int | GetTrianglePt2 (int rank) const |
Get second point index of a Wireframe Object triangle. More... | |
int | GetTrianglePt3 (int rank) const |
Get third point index of a Wireframe Object triangle. More... | |
void | AddVertex (double x, double y, double z) |
Add a vertex to a Wireframe Object. More... | |
void | AddTriangle (int pt1, int pt2, int pt3) |
Add a triangle to a Wireframe Object. More... | |
Friends | |
class | GTXClient |
class | GTXWireframe |
Class for handling individual objects of wireframes.
void GTXWireframeObject::AddTriangle | ( | int | pt1, |
int | pt2, | ||
int | pt3 | ||
) |
Add a triangle to a Wireframe Object.
This function appends a triangle to the shape of a Wireframe Object
void GTXWireframeObject::AddVertex | ( | double | x, |
double | y, | ||
double | z | ||
) |
Add a vertex to a Wireframe Object.
This function appends a vertex to the vertices of a Wireframe Object
int GTXWireframeObject::GetTrianglePt1 | ( | int | rank | ) | const |
Get first point index of a Wireframe Object triangle.
This function gets the first point index for the i'th triangle of a Wireframe Object
int GTXWireframeObject::GetTrianglePt2 | ( | int | rank | ) | const |
Get second point index of a Wireframe Object triangle.
This function gets the second point index for the i'th triangle of a Wireframe Object
int GTXWireframeObject::GetTrianglePt3 | ( | int | rank | ) | const |
Get third point index of a Wireframe Object triangle.
This function gets the third point index for the i'th triangle of a Wireframe Object
int GTXWireframeObject::GetTrianglesNumber | ( | ) | const |
Get the number of triangles of a Wireframe Object.
This function returns the number of triangles of a Wireframe Object
double GTXWireframeObject::GetVertexX | ( | int | rank | ) | const |
Get X value of a Wireframe Object vertex.
This function gets the X value from the i'th vertex of a Wireframe Object
double GTXWireframeObject::GetVertexY | ( | int | rank | ) | const |
Get Y value of a Wireframe Object vertex.
This function gets the Y value from the i'th vertex of a Wireframe Object
double GTXWireframeObject::GetVertexZ | ( | int | rank | ) | const |
Get Z value of a Wireframe Object vertex.
This function gets the Z value from the i'th vertex of a Wireframe Object
int GTXWireframeObject::GetVerticesNumber | ( | ) | const |
Get the number of vertices of a Wireframe Object.
This function returns the number of vertices of a Wireframe Object