#include <SoDatumLabel.h>

Public Types

enum  Type {
  ANGLE, DISTANCE, DISTANCEX, DISTANCEY,
  RADIUS, DIAMETER, SYMMETRIC
}
 

Public Member Functions

 SoDatumLabel ()
 

Static Public Member Functions

static void initClass ()
 

Public Attributes

SoSFEnum datumtype
 
SoSFImage image
 
SoSFFloat lineWidth
 
SoSFName name
 
SoSFVec3f norm
 
SoSFFloat param1
 
SoSFFloat param2
 
SoSFFloat param3
 
SoMFVec3f pnts
 
SoSFInt32 size
 
SoMFString string
 
SoSFColor textColor
 
bool useAntialiasing
 

Protected Member Functions

virtual void computeBBox (SoAction *, SbBox3f &box, SbVec3f &center)
 
virtual void generatePrimitives (SoAction *action)
 
virtual void GLRender (SoGLRenderAction *action)
 
virtual void notify (SoNotList *l)
 
virtual ~SoDatumLabel ()
 

Member Enumeration Documentation

◆ Type

Enumerator
ANGLE 
DISTANCE 
DISTANCEX 
DISTANCEY 
RADIUS 
DIAMETER 
SYMMETRIC 

Constructor & Destructor Documentation

◆ SoDatumLabel()

SoDatumLabel::SoDatumLabel ( )

◆ ~SoDatumLabel()

virtual SketcherGui::SoDatumLabel::~SoDatumLabel ( )
protectedvirtual

Member Function Documentation

◆ computeBBox()

void SoDatumLabel::computeBBox ( SoAction ,
SbBox3f &  box,
SbVec3f &  center 
)
protectedvirtual

◆ generatePrimitives()

void SoDatumLabel::generatePrimitives ( SoAction action)
protectedvirtual

◆ GLRender()

void SoDatumLabel::GLRender ( SoGLRenderAction action)
protectedvirtual

Remark from Stefan Tröger: The scale calculation is based on knowledge of SbViewVolume::getWorldToScreenScale implementation internals. The factor returned from this function is calculated from the view frustums nearplane width, height is not taken into account, and hence we divide it with the viewport width to get the exact pixel scale factor. This is not documented and therefore may change on later coin versions!

References ANGLE, datumtype, DIAMETER, DISTANCE, DISTANCEX, DISTANCEY, lineWidth, norm, param1, param2, param3, pnts, RADIUS, DraftVecUtils::scale(), SYMMETRIC, and textColor.

◆ initClass()

void SoDatumLabel::initClass ( )
static

◆ notify()

void SoDatumLabel::notify ( SoNotList *  l)
protectedvirtual

Member Data Documentation

◆ datumtype

SoSFEnum SketcherGui::SoDatumLabel::datumtype

◆ image

SoSFImage SketcherGui::SoDatumLabel::image

◆ lineWidth

SoSFFloat SketcherGui::SoDatumLabel::lineWidth

Referenced by GLRender(), and SoDatumLabel().

◆ name

SoSFName SketcherGui::SoDatumLabel::name

◆ norm

SoSFVec3f SketcherGui::SoDatumLabel::norm

◆ param1

SoSFFloat SketcherGui::SoDatumLabel::param1

◆ param2

SoSFFloat SketcherGui::SoDatumLabel::param2

◆ param3

SoSFFloat SketcherGui::SoDatumLabel::param3

◆ pnts

SoMFVec3f SketcherGui::SoDatumLabel::pnts

◆ size

SoSFInt32 SketcherGui::SoDatumLabel::size

◆ string

◆ textColor

SoSFColor SketcherGui::SoDatumLabel::textColor

◆ useAntialiasing

bool SketcherGui::SoDatumLabel::useAntialiasing

Referenced by SoDatumLabel().


The documentation for this class was generated from the following files:
  • src/Mod/Sketcher/Gui/SoDatumLabel.h
  • src/Mod/Sketcher/Gui/SoDatumLabel.cpp