|
|
| GlAxisTransformerObject (int axis=0, double axialOffset=0, const isom3 &offset=isom3::Identity(), bool contour=true, bool path=true) |
| |
|
void | setDirection (const std::optional< mat3 > &direction) |
| |
|
| GlTransformerObject (const isom3 &offset=isom3::Identity(), bool drawContour=true) |
| |
|
isom3 | offset () const |
| |
|
void | setOffset (const isom3 &offset) |
| |
|
bool | isHovering () const |
| |
|
void | setHovering (bool hover) |
| |
|
const vec3 & | center () const |
| |
|
virtual bool | isInside (const vec2 &pos, const GL::ViewState &state)=0 |
| |
|
virtual void | moveTo (const vec2 &pos, const vec2 &start, const GL::ViewState &state)=0 |
| |
|
virtual void | activate (const vec2 &start, const GL::ViewState &state) |
| |
|
bool | isActive () const |
| |
|
virtual void | deactivate () |
| |
|
virtual double | distanceTo (const vec3 &val) const |
| |
|
virtual double | distanceTo (const vec2 &pos, const GL::ViewState &state) |
| |
| void | configure (const Properties *p) override |
| | Configure this object instance by de-serializing the given Properties.
|
| |
| void | configuration (Properties *p) const override |
| | Serialize the current object configuration into the given Properties object.
|
| |
| virtual void | draw (const GlView &view)=0 |
| | Draw the object in 3D space.
|
| |
| virtual Geometry::AlignedBox | bounds () const =0 |
| | Get the axis-aligned bounding box of this GlObject in world space.
|
| |
| virtual Geometry::AlignedBox | boundsSpherical () const |
| | Get the spherical bounds of this GlObject in world space.
|
| |
| virtual void | setMatrix (const mat4 &m) |
| | Set the modelview matrix of this object.
|
| |
| virtual const mat4 & | matrix () const |
| | Return the modelview matrix.
|
| |
| virtual void | setVisible (bool visible) |
| | Set object visibility.
|
| |
|
virtual bool | visible () const |
| | Return object visibility.
|
| |
| virtual void | setAlwaysVisible (bool alwaysVisible) |
| | Set if object is always visible.
|
| |
|
virtual bool | alwaysVisible () const |
| | Return if object is always visible.
|
| |
| virtual std::string | typeName () const =0 |
| | Return unique identifier for this object class used for serialization.
|
| |
|
RenderingOrderGroup | renderingOrder () const |
| | Return current rendering order value for this GlObject.
|
| |
|
void | setRenderingOrder (RenderingOrderGroup group) |
| | Set rendering order value for this GlObject.
|
| |
|
void | setDraw3DIn2DView (bool draw3DIn2DView) |
| |
| virtual void | configureDefaults () |
| | Retrieve the properties of this object, replaces values with their defaults and sets it again.
|
| |
|
void | registerParameter (ParameterBase *param) |
| | Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
|
| |
|
void | unregisterParameter (const ParameterBase *param) |
| | Remove the given Parameter or SubProperty from the list of registered parameters.
|
| |
|
| Configurable (const Configurable &rhs) |
| |
|
| Configurable (Configurable &&rhs) noexcept |
| |
|
Configurable & | operator= (const Configurable &) |
| |
|
Configurable & | operator= (Configurable &&) noexcept |
| |
|
|
Parameter< int > | p_axis = {"axis", 0, this} |
| |
|
Parameter< double > | p_axialOffset = {"axialOffset", 0, this} |
| |
|
Parameter< vec3 > | p_color = {"color", vec3::Ones(), this} |
| |
|
Parameter< vec3 > | p_contourColor = {"contourColor", vec3::Zero(), this} |
| |
|
Parameter< vec3 > | p_hoverColor = {"hoverColor", vec3::Constant(0.5), this} |
| |
|
Parameter< bool > | p_drawContour = {"drawContour", true, this} |
| |
|
Signal | signalParametersChanged |
| | Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
|
| |
|
| virtual vec3 | axisVector () const |
| |
| void | setCenter (const vec3 ¢er) override |
| |
|
virtual std::optional< vec3 > | projectToPlane (const vec2 &pos, const GL::ViewState &state) const |
| |
|
virtual std::optional< vec3 > | projectToAxis (const vec2 &pos, const GL::ViewState &state) const |
| |
| void | updatePoses (const GL::ViewState &state) override |
| |
|
virtual std::optional< vec3 > | project (const vec2 &pos, const GL::ViewState &state) const =0 |
| |
|
virtual std::optional< vec3 > | projectToPlane (const vec2 &pos, const Geometry::Plane &plane, const GL::ViewState &state) const |
| |
|
virtual vec3 | getColor () const |
| |
|
virtual vec3 | getColorContour () const |
| |
|
void | drawLines (const std::vector< vec3 > &vertices, const vec3 &color, float lineWidth=1.0) |
| |
|
void | drawLineStrip (const std::vector< vec3 > &vertices, const vec3 &color, float lineWidth=1.0) |
| |
|
void | drawLineLoop (const std::vector< vec3 > &vertices, const vec3 &color, float lineWidth=1.0) |
| |
|
void | drawTriangles (const std::vector< vec3 > &vertices, const vec3 &color) |
| |
|
void | drawTriangleStrip (const std::vector< vec3 > &vertices, const vec3 &color) |
| |
|
void | drawPoints (const std::vector< vec3 > &points, const vec3 &color, double pointSize=5.0) |
| |
|
void | drawSphere (const vec3 ¢er, double radius, const vec3 &color) |
| |
|
void | drawCircle (const vec3 ¢er, const vec3 &normal, double radius, const vec3 &color, bool contour) |
| |