#include <PolygonPrism.h>
Public Member Functions | |
| void | SetHeight (float height) |
| Set the height of the polygon prism. | |
| float | GetHeight () const |
| Return the height of the polygon prism. | |
| void | SetNonUniformScale (const AZ::Vector3 &nonUniformScale) |
| Set the non-uniform scale applied to the polygon prism. | |
| AZ::Vector3 | GetNonUniformScale () const |
| Return the non-uniform scale applied to the polygon prism. | |
| void | SetCallbacks (const VoidFunction &onChangeElement, const VoidFunction &onChangeContainer, const VoidFunction &onChangeHeight, const VoidFunction &onChangeNonUniformScale) |
| Override callbacks to be used when polygon prism changes/is modified (general). | |
| void | SetCallbacks (const IndexFunction &onAddVertex, const IndexFunction &onRemoveVertex, const IndexFunction &onUpdateVertex, const VoidFunction &onSetVertices, const VoidFunction &onClearVertices, const VoidFunction &onChangeHeight, const VoidFunction &onChangeNonUniformScale) |
Static Public Member Functions | |
| static void | Reflect (ReflectContext *context) |
Public Attributes | |
| VertexContainer< Vector2 > | m_vertexContainer |
| Reference to underlying vertex data. | |
Formal Definition: A (right) polygonal prism is a 3-dimensional prism made from two translated polygons connected by rectangles. Parallelogram sides are not allowed. Here the representation is defined by one polygon (internally represented as a vertex container - list of vertices) and a height (extrusion) property. All vertices lie on the local plane Z = 0.
| void AZ::PolygonPrism::SetCallbacks | ( | const IndexFunction & | onAddVertex, |
| const IndexFunction & | onRemoveVertex, | ||
| const IndexFunction & | onUpdateVertex, | ||
| const VoidFunction & | onSetVertices, | ||
| const VoidFunction & | onClearVertices, | ||
| const VoidFunction & | onChangeHeight, | ||
| const VoidFunction & | onChangeNonUniformScale | ||
| ) |
Override callbacks to be used when spline changes/is modified (specific). (use if you need more fine grained control over modifications to the container)