|
|
| GlCurvedViewPolyLine () |
| | Creates the polyline.
|
| |
|
| ~GlCurvedViewPolyLine () override |
| | Destroy the polyline.
|
| |
| void | draw (const GlView &view) override |
| | Render annotation.
|
| |
|
bool | visibleInView (const GlSliceView &view) const |
| |
| int | hitTestHandles2D (int x, int y, const GlView &view) const override |
| | Returns the index of the handle being hit, or -1 when missing.
|
| |
| bool | hitTestLine2D (int x, int y, const GlView &view) const override |
| | Checks whether the line between handles gets hit (if not a straight line, override this in the annotation)
|
| |
| void | setPoints (const std::vector< vec3 > &points) override |
| | Set the points of the polyline.
|
| |
|
std::vector< vec3 > | points () const |
| |
| void | evaluate (double t, vec3 &res) const override |
| | Evaluates polyline.
|
| |
| void | evaluateNormal (double t, vec3 &res) const override |
| | Evaluates primitive normal direction.
|
| |
| void | evaluateTangent (double t, vec3 &res) const override |
| | Evaluates polyline tangent.
|
| |
| void | updatePoints () override |
| | Update the internal point structure.
|
| |
| void | updateYDir () override |
| | Update the normal of the polyline.
|
| |
| double | getCurveLength () const override |
| | Get the length of the primitive.
|
| |
| double | coordToArcLength (double t) const override |
| |
| double | arcLengthToCoord (double length) const override |
| |
| void | getUniformSamples (std::vector< std::pair< double, vec3 > > &samples, int n=0) const override |
| | Get the sample points of the primitive.
|
| |
| double | calculateNearestPointCoord (const vec3 &pos) const override |
| | Calculates the curve parameter t of the point nearest to pos.
|
| |
| bool | isClosed () const override |
| | Returns true if the curve is closed (i.e. first point is at the same position as the last point)
|
| |
| std::string | typeName () const override |
| | Return unique identifier for this object class used for serialization.
|
| |
|
void | setFilledSurface (bool v) |
| |
|
bool | filledSurface () const |
| |
| void | configure (const Properties *p) override |
| | Set one or multiple properties.
|
| |
| void | configuration (Properties *p) const override |
| | Retrieve the properties of this object.
|
| |
| Geometry::AlignedBox | bounds () const override |
| | Get the axis-aligned bounding box of this GlObject in world space.
|
| |
|
void | setColors (const std::vector< vec3 > &colors) |
| |
|
const std::vector< vec3 > & | colors () const |
| |
| unsigned short | stipplePattern () const |
| | Returns the stipple pattern for stippled line rendering.
|
| |
|
void | setStipplePattern (unsigned short value) |
| | Sets the stipple pattern for stippled line rendering.
|
| |
| double | stippleFactor () const |
| | Returns the length of each individual repetition of the stipple pattern.
|
| |
|
void | setStippleFactor (double value) |
| | Sets the length of each individual repetition of the stipple pattern.
|
| |
|
bool | isClosed () const |
| | Returns true if the polyline is closed (i.e. the first and the last point are connected)
|
| |
|
void | setClosed (bool v) |
| | If called with true, the polyline will be closed (i.e. the first and the last point are connected)
|
| |
| void | draw (const GlView &view) override |
| | Draw the object in 3D space.
|
| |
| std::string | typeName () const override |
| | Return unique identifier for this object class used for serialization.
|
| |
|
double | length () const |
| |
| void | setView (const GlView *view) override |
| | Set the view through which this annotation is currently being manipulated.
|
| |
| bool | hitTest (int x, int y, const GlView &view) const override |
| | Perform hit test at screen coordinates (x,y) (OpenGL screen coordinate system) for the specified view.
|
| |
|
virtual int | hitTestHandles3D (int x, int y, const GlView &view) const |
| |
|
virtual bool | hitTestLabel (int x, int y, const GlView &view) const |
| |
| virtual bool | addPoint (const vec3 &p) |
| | Add point to annotation.
|
| |
|
const std::vector< vec3 > & | points () const |
| | Return points making up the annotation.
|
| |
|
int | maxPoints () const |
| | Return maximum number of points allowed for annotation. -1 means no limit.
|
| |
|
int | minPoints () const |
| | Return minimum number of points required for annotation. -1 means no limit.
|
| |
| void | setEditable (bool editable) override |
| | Set annotation to be editable, i.e.
|
| |
| virtual void | setPointColor (const vec3 &color) |
| | Set point color.
|
| |
|
vec3 | pointColor () const |
| | Get point color.
|
| |
| void | configure (const Properties *p) override |
| | Set one or multiple properties.
|
| |
| void | configuration (Properties *p) const override |
| | Retrieve the properties of this object.
|
| |
| Geometry::AlignedBox | bounds () const override |
| | Get the axis-aligned bounding box of this GlObject in world space.
|
| |
| virtual void | rotate (float angle) |
| | Change the GlObject matrix to reflect a rotation around the current m_rotationPoint Since this matrix is ignored by most renderers at the moment, this does not currently rotate anything.
|
| |
| virtual void | rotateNoMatrix (float angle) |
| | Rotate the annotation by changing the handle positions instead of the matrix.
|
| |
| virtual void | setRotationPoint (vec3 &point) |
| | Set the axis for rotation.
|
| |
| virtual void | setPointSize (float s) |
| | Set the point size.
|
| |
|
virtual void | setLabelPixelOffset (const vec2 &offset) |
| | Set the label's pixel offset.
|
| |
|
float | pointSize () const |
| | Retrieve the point size.
|
| |
| virtual void | setShowPointsAsCrosses (bool flag) |
| | Set the rendering of points.
|
| |
| virtual void | setSelected (bool v) override |
| | When a GlAnnotation is selected, it may be rendered differently to distinguish it from non-selected annotations.
|
| |
| virtual void | setMatrix (const mat4 &m) override |
| | Overwritten method to update points in world coordinates if the matrix has changed.
|
| |
| virtual void | setMatrixWithoutMoving (const mat4 &m) override |
| | Change the matrix witout moving the annotation, e.g. for linking it with an image transformation.
|
| |
| virtual bool | sampleRenderPath (int samples, std::vector< vec3 > &out) const |
| | For annotations where the rendered shape differs from the stored points, this method returns true and a set of points on the rendered curve.
|
| |
| virtual void | setLineWidth (float value) override |
| | Set annotation line width.
|
| |
|
void | copyStyle (const GlPointBasedAnnotation &other) |
| |
|
virtual std::optional< vec3 > | labelPosition (const GL::ViewState &state) const |
| | Position of the label If there is no valid position for the label, returns an empty optional.
|
| |
|
virtual const GlView * | view () const |
| | Get the view through which this annotation is currently being manipulated.
|
| |
| virtual bool | editable () const |
| | When a GlAnnotation is editable it may alter its visualization and render UI elements for its manipulation.
|
| |
| virtual void | setColor (const vec3 &color) |
| | Set annotation color.
|
| |
| virtual vec3 | color () const |
| | Return annotation color.
|
| |
| virtual void | setAlpha (double v) |
| | Set alpha channel.
|
| |
| virtual double | alpha () const |
| | Get alpha channel.
|
| |
| virtual float | lineWidth () const |
| | Return annotation line width.
|
| |
| virtual void | setLabelVisible (bool visible) |
| | Set annotation label visibility.
|
| |
| virtual bool | labelVisible () const |
| | Return annotation label visibility.
|
| |
|
virtual void | setLabelBackgroundVisible (bool visible) |
| | Set annotation label background visibility.
|
| |
|
virtual bool | labelBackgroundVisible () const |
| | Return annotation label background visibility.
|
| |
|
virtual void | setLabelBackgroundColor (vec4 color) |
| | Set annotation label background color.
|
| |
|
virtual vec4 | labelBackgroundColor () const |
| | Return annotation label background color.
|
| |
|
virtual void | setLabelBackgroundMargin (int margin) |
| | Set annotation label background margin in pixels.
|
| |
|
virtual int | labelBackgroundMargin () const |
| | Return annotation label background margin in pixels.
|
| |
| virtual void | setLabelDepthTest (bool depthTest) |
| | Set annotation label depth test flag.
|
| |
| virtual bool | labelDepthTest () const |
| | Return annotation label depth test flag.
|
| |
| virtual void | setLabelColor (const vec3 &color) |
| | Set annotation label color.
|
| |
| virtual vec3 | labelColor () const |
| | Return annotation label color.
|
| |
| virtual void | setLabelText (const std::string &label) |
| | Set annotation label text.
|
| |
| virtual std::string | labelText () const |
| | Return annotation label text.
|
| |
| virtual void | setLabelTextPrefix (const std::string &labelPrefix) |
| | Set annotation label text prefix.
|
| |
|
std::string | labelTextPrefix () const |
| | Return annotation label text prefix.
|
| |
| virtual void | setLabelTextSuffix (const std::string &labelSuffix) |
| | Set annotation label text suffix.
|
| |
|
std::string | labelTextSuffix () const |
| | Return annotation label text suffix.
|
| |
|
virtual void | setName (const std::string &name) |
| | Set annotation name.
|
| |
| virtual std::string | name () const |
| | Return annotation name.
|
| |
|
bool | selected () const |
| | When a GlAnnotation is selected, it may be rendered differently to distinguish it from non-selected annotations.
|
| |
|
void | copyStyle (const GlAnnotation &other) |
| | Copies the settable parameters from another GlAnnotation.
|
| |
| virtual Geometry::AlignedBox | boundsSpherical () const |
| | Get the spherical bounds of this GlObject in world space.
|
| |
| 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.
|
| |
|
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 |
| |
| vec3 | yDir () const |
| | Get the y-direction of the primitive The y-direction is defined as the normal of the plane in which the primitive is located.
|
| |
|
void | overrideCurvedSliceYDir (const vec3 &yDir, bool forcedYDir=true) |
| |
|
bool | forcedYDir (vec3 &yDirOut) const |
| |
|
void | updateCurveHeight (const SharedImageSet *imgSet) |
| | Update height of the primitive.
|
| |
|
double | curveHeight () const |
| |