#include <sglScale.hpp>
Inheritance diagram for sglScale::
Public Methods  
sglScale ()  
virtual  ~sglScale () 
void  setScale (T scale) 
T  getScale () 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 void  computeTxToParent (sglMat4f &curr_mat) const 
virtual void  computeTxToParent (sglMat4d &curr_mat) const 
virtual sglNode*  clone (unsigned int mode) const 
virtual void  printInfo (ostream &ostrm, const char *indent_string) const 
Protected Methods  
virtual void  computeBound () 
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 (sglScale *dst, unsigned int mode) const 
Protected Attributes  
T  m_scale 
T  m_inv_scale 
Example:
sglScaled *dp_scale_node = new sglScaled; dp_translate_node>setScale(25.0000001);
Definition at line 52 of file sglScale.hpp.

default constructor intializes to unit scale.
Definition at line 56 of file sglScale.hpp. 

virtual destructor.
Definition at line 58 of file sglScale.hpp. 

Set the scale factor.


Get the current scale factor.
Definition at line 68 of file sglScale.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. 

Compute a single precision transform to parent and append (via multiplication) the matrix passed in. This is part of an upward traversal, which most commonly begins with an sglViewPlatform and used for computing the position and orientation of said platform. This is the default implementation for all nodes that do not affect this matrix and therefore this function does nothing.
Reimplemented from sglNode. 

Compute a double precision transform to parent and append (via multiplication) the matrix passed in. This is part of an upward traversal, which most commonly begins with an sglViewPlatform and used for computing the position and orientation of said platform. This is the default implementation for all nodes that do not affect this matrix and therefore this function does nothing.
Reimplemented from sglNode. 

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 userfriendly 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 userfriendly culling is in the sglScene class.
Reimplemented from sglGroup. 