State associated with brush rendering. More...
#include <kanzi/core.ui/node/node_visual2d.hpp>
Public Member Functions | |
void | clearBrush () |
Clears the brush state and the brush renderer. More... | |
void | render (Renderer3D &renderer, const Matrix4x4 &transform, BrushRenderer &overrideBrushRenderer) |
Renders geometry using an override brush renderer. More... | |
bool | setBrush (Brush *assignedBrush, Node &node) |
Sets a brush to a 2D node and creates a brush renderer for the brush. More... | |
void | setGeometry (Domain *domain, const QuadDescription &quad, Vector2 tiling) |
Creates a quad geometry. More... | |
void | setGeometry (Domain *domain, const FrameDescription &frame, Vector2 tiling) |
Creates a frame quad geometry. More... | |
Public Attributes | |
Brush * | brush |
Brush instance. More... | |
BrushRendererPtr | brushRenderer |
Brush renderer associated with the brush. More... | |
GeometrySharedPtr | geometry |
Geometry instance. More... | |
optional< RectangleFloat > | unitQuadTargetRectangle |
Target rectangle for the unit quad if the unit quad is used, nullopt otherwise. More... | |
Vector2 | validatedTiling |
Last validated tiling value. More... | |
State associated with brush rendering.
|
inline |
Clears the brush state and the brush renderer.
Sets a brush to a 2D node and creates a brush renderer for the brush.
assignedBrush | The brush to set. |
node | The node to which to set the brush. |
void kanzi::NodeVisual2D::BrushState::render | ( | Renderer3D & | renderer, |
const Matrix4x4 & | transform, | ||
BrushRenderer & | overrideBrushRenderer | ||
) |
void kanzi::NodeVisual2D::BrushState::setGeometry | ( | Domain * | domain, |
const QuadDescription & | quad, | ||
Vector2 | tiling | ||
) |
void kanzi::NodeVisual2D::BrushState::setGeometry | ( | Domain * | domain, |
const FrameDescription & | frame, | ||
Vector2 | tiling | ||
) |
GeometrySharedPtr kanzi::NodeVisual2D::BrushState::geometry |
Geometry instance.
BrushRendererPtr kanzi::NodeVisual2D::BrushState::brushRenderer |
Brush renderer associated with the brush.
optional<RectangleFloat> kanzi::NodeVisual2D::BrushState::unitQuadTargetRectangle |
Target rectangle for the unit quad if the unit quad is used, nullopt otherwise.
Vector2 kanzi::NodeVisual2D::BrushState::validatedTiling |
Last validated tiling value.