Gizmo3D

gzViewPlane Class Reference

#include <gzGeometryUtils.h>

Inheritance diagram for gzViewPlane:

gzBaseGeometry gzNode gzBoundary gzNodeActionProvider gzNameInterface gzDebugInterface gzIntersectMask gzUpdateIDInterface gzCullMask gzObject gzUserData gzReference gzSerializeData gzSharedMemory gzTypeInterface List of all members.

Public Member Functions

 gzViewPlane (const gzReal &distance=-1, const gzVec4 &color=gzVec4(0.0, 0.0, 0.0, 1.0), const gzString &name=GZ_EMPTY_STRING)
virtual ~gzViewPlane ()
 GZ_DECLARE_TYPE_INTERFACE_EXPORT (1)
virtual gzVoid preTraverseAction (gzTraverseAction *actionclass, gzContext *context)
virtual gzVoid updateNode ()
virtual gzReferenceclone () const
gzVoid setCoordinates (const gzVec2 &bottomLeftCoordinate, const gzVec2 &upperRightCoordinate)
gzVoid setTexCoordinates (const gzVec2 &bottomLeftTexCoordinate, const gzVec2 &upperRightTexCoordinate)
gzVoid setColor (const gzVec4 &color)
gzVoid usePixelPosition (gzBool on)
gzVoid setAlignment (gzViewPlaneAlign alignment)
 GZ_PROPERTY_EXPORT (gzBool, UseIntersection, 1)
 Set to TRUE if active in intersections.

Detailed Description

Examples:

dbviewer.cpp.

Definition at line 167 of file gzGeometryUtils.h.


Constructor & Destructor Documentation

gzViewPlane::gzViewPlane const gzReal distance = -1,
const gzVec4 color = gzVec4(0.0, 0.0, 0.0, 1.0),
const gzString name = GZ_EMPTY_STRING
 

virtual gzViewPlane::~gzViewPlane  )  [inline, virtual]
 

Definition at line 172 of file gzGeometryUtils.h.


Member Function Documentation

virtual gzReference* gzViewPlane::clone  )  const [virtual]
 

Implements gzBaseGeometry.

gzViewPlane::GZ_DECLARE_TYPE_INTERFACE_EXPORT  ) 
 

Reimplemented from gzBaseGeometry.

gzViewPlane::GZ_PROPERTY_EXPORT gzBool  ,
UseIntersection  ,
 

Set to TRUE if active in intersections.

virtual gzVoid gzViewPlane::preTraverseAction gzTraverseAction actionclass,
gzContext context
[virtual]
 

Implements gzBaseGeometry.

gzVoid gzViewPlane::setAlignment gzViewPlaneAlign  alignment  ) 
 

The default alignment is the lower left window corner. E.g. a square in the lower left coner is then specified by setCoordinates(gzVec2(0,0),gzVec2(100,100))

Examples:
dbviewer.cpp.

gzVoid gzViewPlane::setColor const gzVec4 color  ) 
 

gzVoid gzViewPlane::setCoordinates const gzVec2 bottomLeftCoordinate,
const gzVec2 upperRightCoordinate
 

Examples:
dbviewer.cpp.

gzVoid gzViewPlane::setTexCoordinates const gzVec2 bottomLeftTexCoordinate,
const gzVec2 upperRightTexCoordinate
 

Examples:
dbviewer.cpp.

virtual gzVoid gzViewPlane::updateNode  )  [virtual]
 

Implements gzBaseGeometry.

gzVoid gzViewPlane::usePixelPosition gzBool  on  ) 
 

When you use pixel positions,the pixel coordinates are calculates as offsets to the current origo and counting "x" positive to the right and "y" positive up. You set the origo by using the setAlignment method

Examples:
dbviewer.cpp.


The documentation for this class was generated from the following file:
Documentation for Gizmo3D generated at Wed Feb 20 11:54:27 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond