|
|
| VertexContainer (const IndexFunction &addCallback, const IndexFunction &removeCallback, const IndexFunction &updateCallback, const VoidFunction &setCallback, const VoidFunction &clearCallback) |
| |
| void | AddVertex (const Vertex &vertex) |
| |
| bool | UpdateVertex (size_t index, const Vertex &vertex) |
| |
| bool | InsertVertex (size_t index, const Vertex &vertex) |
| |
| bool | RemoveVertex (size_t index) |
| |
| template<typename Vertices > |
| void | SetVertices (Vertices &&vertices) |
| |
|
void | Clear () |
| | Remove all vertices.
|
| |
| bool | GetVertex (size_t index, Vertex &vertex) const |
| |
| bool | GetLastVertex (Vertex &vertex) const |
| |
|
size_t | Size () const |
| | Number of vertices in the container.
|
| |
|
bool | Empty () const |
| | Is the container empty or not.
|
| |
|
const AZStd::vector< Vertex > & | GetVertices () const |
| | Immutable reference to container of vertices.
|
| |
|
const Vertex & | operator[] (size_t index) const |
| | Unsafe access to vertices (index must be checked to be in range before use).
|
| |
| void | SetCallbacks (const IndexFunction &addCallback, const IndexFunction &removeCallback, const IndexFunction &updateCallback, const VoidFunction &setCallback, const VoidFunction &clearCallback) |
| |
A wrapper around a AZStd::vector of either Vector2 or Vector3s. Provides an interface to access and modify the container.