SoPolygonScreenDrawer Class Reference
[Drawers]

VSG extension Interactively draws a polygon in normalized screen space. More...

#include <Inventor/drawers/SoPolygonScreenDrawer.h>

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

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoPolygonScreenDrawer ()
virtual void clear ()

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

VSG extension Interactively draws a polygon in normalized screen space.

This class can be used to interactively draw a polygon on screen.

When the polygon 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 and simplification threshold are specified by fields in the parent class SoPolyLineScreenDrawer.

Please see SoPolyLineScreenDrawer for additional notes and code example.

Polygon 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

SoEllipseScreenDrawer, SoLassoScreenDrawer, SoPolyLineScreenDrawer, SoRectangleScreenDrawer

See related examples:

CustomScreenDrawer, MedicalFreeHandCutting, CSGClippingGroup, EditingPicking


Constructor & Destructor Documentation

SoPolygonScreenDrawer::SoPolygonScreenDrawer (  ) 

Constructor.


Member Function Documentation

virtual void SoPolygonScreenDrawer::clear (  )  [inline, virtual]

Convenience method to clear the points in the line.

Reimplemented from SoPolyLineScreenDrawer.

static SoType SoPolygonScreenDrawer::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoPolyLineScreenDrawer.

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

Returns the type identifier for this specific instance.

Reimplemented from SoPolyLineScreenDrawer.


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/