SoEllipseScreenDrawer Class Reference
[Drawers]

VSG extension Interactively draw an ellipse in normalized screen space. More...

#include <Inventor/drawers/SoEllipseScreenDrawer.h>

Inheritance diagram for SoEllipseScreenDrawer:
SoPolyLineScreenDrawer SoScreenDrawer SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  CreationMethod {
  CORNER_CORNER,
  CENTER_CORNER
}

Public Member Functions

virtual SoType getTypeId () const
 SoEllipseScreenDrawer ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFEnum method
SoSFUInt32 nbPoint

Detailed Description

VSG extension Interactively draw an ellipse in normalized screen space.

This class can be used to interactively draw an ellipse on screen.

When the ellipse is finished, an event is raised to notify the application (see SoPolyLineScreenDrawer::onFinish ). Points are returned as normalized coordinates in the range -1..1, which is conveniently the default view volume for an SoOrthographicCamera node.

The line color is specified by the color field in the parent class SoPolyLineScreenDrawer.

Please see SoPolyLineScreenDrawer for general notes and code example.

Ellipse specific notes:

[C++]
Screen drawer classes must be initialized by calling SoInteraction::init(). High level viewer init methods, like SoWin::init(), automatically do this. However, if the application is calling SoDB::init() directly, then it is usually necessary to also call SoInteraction::init() before using the screen drawer classes.

USAGE

FILE FORMAT/DEFAULT

SEE ALSO

SoLassoScreenDrawer, SoPolyLineScreenDrawer, SoPolygonScreenDrawer, SoRectangleScreenDrawer,

See related examples:

CustomScreenDrawer, MedicalFreeHandCutting, CSGClippingGroup


Member Enumeration Documentation

Methods to create ellipse.

Enumerator:
CORNER_CORNER 

Initial point is a corner, current point is a corner.

CENTER_CORNER 

Initial point is the center, current point is a corner.


Constructor & Destructor Documentation

SoEllipseScreenDrawer::SoEllipseScreenDrawer (  ) 

Constructor.


Member Function Documentation

static SoType SoEllipseScreenDrawer::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoPolyLineScreenDrawer.

virtual SoType SoEllipseScreenDrawer::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoPolyLineScreenDrawer.


Member Data Documentation

Method to create ellipse.

Use enum CreationMethod. Default is CORNER_CORNER.

Number of points in generated ellipse.

Default is 16. Must be > 0.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/