18#include <Inventor/fields/SoFields.h>
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
SoView2DCallback allows to set a callback for evalEvent and draw virtual functions of a SoView2DExten...
Draws an overlay image on the SoView2D.
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
reimplemented from SoView2DExtension
~SoView2DOverlayDecoration() override
Destructor.
SoSFFloat rulerLongMarkLength
bool isImageParallel(View2DSliceList *dsl)
Return true if overlay is parallel to image up to slice thickness.
SoSFFloat rulerMarkLength
static void initClass()
inventor runtime type system
SoView2DOverlayDecoration()
Constructor.
SoSFBool drawBorderOutside
SoSFFloat magnifyFactor
set the magnifyFactor that is used for the ruler
SoSFColor rulerShadowColor
void drawRuler(float mmToPixel, float x1, float y1, float x2, float y2, SoView2DOverlayDecoration::Position pos)
draw a ruler at the given position
SoView2D is a 2D viewer for image data.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
Target mlrange_cast(Source arg)
Generic version of checked ML casts.