#include <sglUnProject.hpp>
Inheritance diagram for sglUnProject::
Public Methods | |
sglUnProject (bool fixedPixelScale=false) | |
virtual | ~sglUnProject () |
void | setFixedPixelScale (bool on) |
bool | getFixedPixelScale () const |
virtual sglBound::IntersectResultEnum | intersect (sglIntersectf &isector) const |
virtual sglBound::IntersectResultEnum | intersect (sglIntersectd &isector) const |
virtual void | pick (sglPickf &pick_state, unsigned int cull_flags) const |
virtual void | pick (sglPickd &pick_state, unsigned int cull_flags) const |
virtual sglNode* | clone (unsigned int mode) const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Protected Methods | |
virtual void | cull (sglCull< float > &trav_state, unsigned int cull_flags) const |
virtual void | cull (sglCull< double > &trav_state, unsigned int cull_flags) const |
void | copyTo (sglUnProject *dst, unsigned int mode) const |
There are two modes for this node: with and without fixed pixel scale:
x - left to right, a unit length of one = one pixel y - bottom to top, a unit length of one = one pixel z - 0 (on the near clip plane) ... (negatives extending into the scene)
x - left to right, viewport width = 1.0 * aspect ratio \ y - bottom to top, viewport height = 1.0 \ z - 0 (on the near clip plane) ... (negatives extending into the scene)
Example:
sglGeode *geode = new sglGeode; sglUnProject *unproject_node = new sglUnProject(true); // fixed pixel scale unproject_node->addChild(geode);
Definition at line 75 of file sglUnProject.hpp.
|
Constructor
|
|
virtual destructor.
|
|
Set whether geometry is scaled in units of pixels.
Definition at line 90 of file sglUnProject.hpp. |
|
Query for fixed pixel scale mode.
Definition at line 95 of file sglUnProject.hpp. |
|
The single precision intersection traversal function which returns the closest object (bounding volume and/or triangle) that intersects with the given intersect segment.
Reimplemented from sglGroup. |
|
The double precision intersection traversal function which returns the closest object (bounding volume and/or triangle) that intersects with the given intersect segment.
Reimplemented from sglGroup. |
|
The single precision pick traversal function which returns all objects that fall within the pick frustum.
Reimplemented from sglGroup. |
|
The double precision pick traversal function which returns all objects that fall within the pick frustum.
Reimplemented from sglGroup. |
|
Make a copy of the scenegraph rooted at this node.
Reimplemented from sglGroup. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglGroup. |
|
The single precision cull traversal function that culls out subgraphs that do not lie in the view frustum (stored in the sglCull parameter). Subclasses must implement this function. The entry point for user-friendly culling is in the sglScene class.
Reimplemented from sglGroup. |
|
The double precision cull traversal function that culls out subgraphs that do not lie in the view frustum (stored in the sglCull parameter). Subclasses must implement this function. The entry point for user-friendly culling is in the sglScene class.
Reimplemented from sglGroup. |