21#include <Inventor/fields/SoSFBool.h>
22#include <Inventor/fields/SoSFInt32.h>
77 SbString _asString(
double value,
int precision)
const;
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2DExtension()
Constructor.
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 moveVerticalRulerToTop
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