#include <Shape.hpp>
|
| static constexpr const uint32_t | DIRTY_SHAPE = 1_u32 << 0 |
| | Shape draw listener action returning a boolean value
|
| |
| static constexpr const uint32_t | DIRTY_STATE = 1_u32 << 1 |
| |
|
| virtual void | clearImpl0 (const render::gl::GL &gl, RegionRenderer &renderer) |
| | Custom clear(GL2ES2, RegionRenderer) task, called 1st.
|
| |
| virtual void | destroyImpl0 (const render::gl::GL &gl, RegionRenderer &renderer) |
| | Custom destroy(GL2ES2, RegionRenderer) task, called 1st.
|
| |
| virtual void | drawImpl0 (const render::gl::GL &gl, RegionRenderer &renderer, const Vec4f &rgba) noexcept |
| | Actual draw implementation, called by draw(GL2ES2, RegionRenderer).
|
| |
| virtual void | drawToSelectImpl0 (const render::gl::GL &gl, RegionRenderer &renderer) |
| | Actual draw implementation, called by drawToSelect(GL2ES2, RegionRenderer).
|
| |
| virtual void | validateImpl (const render::gl::GL &gl, const render::gl::GLProfile &glp) noexcept |
| |
|
| static constexpr Vec4f | activeRGBAModulate = Vec4f(0.25f, 0.25f, 0.25f, 1.0f) |
| | Default active color-factor (dark), modulates base-color.
|
| |
| static constexpr Vec4f | cWhite = Vec4f(1, 1, 1, 1) |
| |
| static constexpr Vec4f | pressedRGBAModulate = Vec4f(0.70f, 0.70f, 0.70f, 0.8f) |
| | Default pressed color-factor (darker and slightly transparent), modulates base-color.
|
| |
| static constexpr Vec4f | rgbaColor = Vec4f(0.60f, 0.60f, 0.60f, 1.0f) |
| | Default base-color w/o color channel, will be modulated w/ pressed- and toggle color.
|
| |
| static constexpr Vec4f | toggleOffRGBAModulate = Vec4f(1.00f, 1.00f, 1.00f, 1.0f) |
| | Default toggle color-factor (original), modulates base-color.
|
| |
| static constexpr Vec4f | toggleOnRGBAModulate = Vec4f(0.83f, 0.83f, 0.83f, 1.0f) |
| | Default toggle color-factor (darker), modulates base-color.
|
| |
Definition at line 82 of file Shape.hpp.
◆ Visitor1Func
Visitor1 method.
- Parameters
-
- Returns
- true to signal operation complete and to stop traversal, otherwise false
Definition at line 89 of file Shape.hpp.
◆ Visitor2Func
Visitor2 method.
- Parameters
-
- Returns
- true to signal operation complete and to stop traversal, otherwise false
Definition at line 97 of file Shape.hpp.
◆ MoveEventCallback
Shape move listener
- Parameters
-
| s | the moved shape |
| origin | original position, relative object coordinates to the associated Shape |
| dest | new position, relative object coordinates to the associated Shape |
| e | original Newt MouseEvent |
Definition at line 106 of file Shape.hpp.
◆ PointerEventCallback
◆ ShapeEventCallback
◆ Shape()
| gamp::graph::ui::Shape::Shape |
( |
| ) |
|
|
inline |
◆ validateImpl()
◆ drawImpl0()
| virtual void gamp::graph::ui::Shape::drawImpl0 |
( |
const render::gl::GL & | gl, |
|
|
RegionRenderer & | renderer, |
|
|
const Vec4f & | rgba ) |
|
protectedvirtualnoexcept |
◆ drawToSelectImpl0()
| virtual void gamp::graph::ui::Shape::drawToSelectImpl0 |
( |
const render::gl::GL & | gl, |
|
|
RegionRenderer & | renderer ) |
|
protectedvirtual |
◆ clearImpl0()
| virtual void gamp::graph::ui::Shape::clearImpl0 |
( |
const render::gl::GL & | gl, |
|
|
RegionRenderer & | renderer ) |
|
protectedvirtual |
◆ destroyImpl0()
| virtual void gamp::graph::ui::Shape::destroyImpl0 |
( |
const render::gl::GL & | gl, |
|
|
RegionRenderer & | renderer ) |
|
protectedvirtual |
◆ hasColorChannel()
| virtual bool gamp::graph::ui::Shape::hasColorChannel |
( |
| ) |
const |
|
virtualnoexcept |
◆ asContainer()
| virtual Container * gamp::graph::ui::Shape::asContainer |
( |
| ) |
const |
|
inlinevirtualnoexcept |
◆ position() [1/2]
| const Vec3f & gamp::graph::ui::Shape::position |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ position() [2/2]
| Vec3f & gamp::graph::ui::Shape::position |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ zOffset() [1/2]
| const float & gamp::graph::ui::Shape::zOffset |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ zOffset() [2/2]
| float & gamp::graph::ui::Shape::zOffset |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ rotation() [1/2]
| const Quat4f & gamp::graph::ui::Shape::rotation |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ rotation() [2/2]
| Quat4f & gamp::graph::ui::Shape::rotation |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ rotationPivot() [1/2]
| const Vec3f & gamp::graph::ui::Shape::rotationPivot |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ rotationPivot() [2/2]
| Vec3f & gamp::graph::ui::Shape::rotationPivot |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ scale() [1/2]
| const Vec3f & gamp::graph::ui::Shape::scale |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ scale() [2/2]
| Vec3f & gamp::graph::ui::Shape::scale |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ outlines() [1/2]
| const OutlineShape & gamp::graph::ui::Shape::outlines |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ outlines() [2/2]
◆ color()
| const Vec4f & gamp::graph::ui::Shape::color |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ setColor()
| void gamp::graph::ui::Shape::setColor |
( |
const Vec4f & | c | ) |
|
|
inlineconstexprnoexcept |
◆ setPressed()
| Shape & gamp::graph::ui::Shape::setPressed |
( |
bool | b | ) |
|
|
inlinenoexcept |
◆ isPressed()
| bool gamp::graph::ui::Shape::isPressed |
( |
| ) |
const |
|
inlinenoexcept |
◆ setToggleable()
| Shape & gamp::graph::ui::Shape::setToggleable |
( |
bool | toggleable | ) |
|
|
inlinenoexcept |
Set this shape toggleable, default is off.
- Parameters
-
- See also
- #isInteractive()
Definition at line 265 of file Shape.hpp.
◆ isToggleable()
| bool gamp::graph::ui::Shape::isToggleable |
( |
| ) |
const |
|
inlinenoexcept |
◆ draw()
| void gamp::graph::ui::Shape::draw |
( |
render::gl::GL & | gl, |
|
|
RegionRenderer & | renderer ) |
|
inlinenoexcept |
◆ validate() [1/3]
| final Shape gamp::graph::ui::Shape::validate |
( |
final GL2ES2 | gl | ) |
|
|
inline |
◆ validate() [2/3]
| final Shape gamp::graph::ui::Shape::validate |
( |
final GLProfile | glp | ) |
|
|
inline |
Validates the shape's underlying GLRegion w/o a current GL2ES2 object.
If the region is dirty a new region is created and the old one gets pushed to a dirty-list to get disposed when a GL context is available.
- See also
- validate(GL2ES2)
Definition at line 356 of file Shape.hpp.
◆ validate() [3/3]
| final Shape gamp::graph::ui::Shape::validate |
( |
final GL2ES2 | gl, |
|
|
final GLProfile | glp ) |
|
inline |
◆ applyMatToMv()
| void gamp::graph::ui::Shape::applyMatToMv |
( |
PMVMat4f & | pmvMat | ) |
|
|
inlinenoexcept |
Applies the internal Matrix4f to the given modelview matrix, i.e.
pmv.mulMv( getMat() ).
Calls updateMat() if dirty.
In case isMatIdentity() is true, implementation is a no-operation.
- Parameters
-
- See also
- #isMatIdentity()
-
updateMat()
-
#getMat()
-
PMVMatrix4f#mulMv(Matrix4f)
Definition at line 395 of file Shape.hpp.
◆ DIRTY_SHAPE
| const uint32_t gamp::graph::ui::Shape::DIRTY_SHAPE = 1_u32 << 0 |
|
staticconstexpr |
◆ DIRTY_STATE
| const uint32_t gamp::graph::ui::Shape::DIRTY_STATE = 1_u32 << 1 |
|
staticconstexpr |
◆ box
◆ rgbaColor
| Vec4f gamp::graph::ui::Shape::rgbaColor = Vec4f(0.60f, 0.60f, 0.60f, 1.0f) |
|
staticconstexprprotected |
Default base-color w/o color channel, will be modulated w/ pressed- and toggle color.
Definition at line 144 of file Shape.hpp.
◆ pressedRGBAModulate
| Vec4f gamp::graph::ui::Shape::pressedRGBAModulate = Vec4f(0.70f, 0.70f, 0.70f, 0.8f) |
|
staticconstexprprotected |
Default pressed color-factor (darker and slightly transparent), modulates base-color.
~0.65 (due to alpha)
Definition at line 146 of file Shape.hpp.
◆ toggleOnRGBAModulate
| Vec4f gamp::graph::ui::Shape::toggleOnRGBAModulate = Vec4f(0.83f, 0.83f, 0.83f, 1.0f) |
|
staticconstexprprotected |
Default toggle color-factor (darker), modulates base-color.
0.60 * 0.83 ~= 0.50
Definition at line 148 of file Shape.hpp.
◆ toggleOffRGBAModulate
| Vec4f gamp::graph::ui::Shape::toggleOffRGBAModulate = Vec4f(1.00f, 1.00f, 1.00f, 1.0f) |
|
staticconstexprprotected |
Default toggle color-factor (original), modulates base-color.
0.60 * 1.00 ~= 0.60
Definition at line 150 of file Shape.hpp.
◆ activeRGBAModulate
| Vec4f gamp::graph::ui::Shape::activeRGBAModulate = Vec4f(0.25f, 0.25f, 0.25f, 1.0f) |
|
staticconstexprprotected |
Default active color-factor (dark), modulates base-color.
0.60 * 0.25 ~= 0.15
Definition at line 152 of file Shape.hpp.
◆ cWhite
| Vec4f gamp::graph::ui::Shape::cWhite = Vec4f(1, 1, 1, 1) |
|
staticconstexprprotected |
◆ activeRGBAModulateOn
| bool gamp::graph::ui::Shape::activeRGBAModulateOn = false |
|
protected |
The documentation for this class was generated from the following file: