21#include <Inventor/fields/SoSFBool.h>
22#include <Inventor/fields/SoSFInt32.h>
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
SoView2D extension for drawing rulers.
SoView2DRuler()
Constructor.
SoSFInt32 verticalRulerMarginRight
void drawHorizontalRuler(View2DSliceList *dsl, View2DSlice *dslice, bool drawText, int marginBottom, const PixelBoundingBox &pixelBoundingBox)
void drawVerticalRuler(View2DSliceList *dsl, View2DSlice *dslice, bool drawText, int marginRight, const PixelBoundingBox &pixelBoundingBox)
draws an annotated ruler
SoSFInt32 rulerFontSize
Fields.
static void initClass()
inventor runtime type system
SoSFInt32 horizontalRulerMarginBottom
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
draw annotations on slice
SoSFBool coupleVerticalRulerToSkinLine
float decimalFloor(float number, SbString &result, int ÷r)
returns the closest decimal floor and copies a printable string into the buffer
~SoView2DRuler() override
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.