Navigation and Viewing Framework
Configurable navigation and viewing setups for various display types in the VR lab
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lib-server.Intersection.Intersection Class Reference

Helper class to determine the intersections of a ray with the objects in a scene. More...

Inheritance diagram for lib-server.Intersection.Intersection:

Public Member Functions

def __init__
 Default constructor. More...
 
def my_constructor
 Custom constructor. More...
 
def evaluate
 Evaluated every frame. More...
 
def set_pick_length
 Sets the pick_length attribute. More...
 
def set_pick_direction
 Sets the pick_direction attribute. More...
 
def dot
 Dot prodcut between two vectors. More...
 
def cross
 Cross prodcut between two vectors. More...
 
def activate
 Activate the intersection procedure. More...
 
def deactivate
 Deactivate the intersection procedure. More...
 

Public Attributes

 SCENEGRAPH
 Reference to the scenegraph. More...
 
 ray
 The spatial ray to be analyzed. More...
 
 picking_options
 Picking options for the intersection process. More...
 
 picking_mask
 Picking mask of the intersection process. More...
 
 pick_length
 Length of the ray in meters. More...
 
 pick_direction
 Direction of the ray. More...
 

Static Public Attributes

tuple sf_pick_mat = avango.gua.SFMatrix4()
 Starting matrix of the ray to be analyzed. More...
 
tuple mf_pick_result = avango.gua.MFPickResult()
 Intersections of the ray with the objects in the scene. More...
 
 activated = True
 Indicates if the intersection computation is activated or not. More...
 

Detailed Description

Helper class to determine the intersections of a ray with the objects in a scene.

Constructor & Destructor Documentation

def lib-server.Intersection.Intersection.__init__ (   self)

Default constructor.

Member Function Documentation

def lib-server.Intersection.Intersection.activate (   self)

Activate the intersection procedure.

def lib-server.Intersection.Intersection.cross (   self,
  VEC1,
  VEC2 
)

Cross prodcut between two vectors.

Parameters
VEC1Left vector.
VEC2Right vector.
def lib-server.Intersection.Intersection.deactivate (   self)

Deactivate the intersection procedure.

def lib-server.Intersection.Intersection.dot (   self,
  VEC1,
  VEC2 
)

Dot prodcut between two vectors.

Parameters
VEC1Left vector.
VEC2Right vector.
def lib-server.Intersection.Intersection.evaluate (   self)

Evaluated every frame.

def lib-server.Intersection.Intersection.my_constructor (   self,
  SCENEGRAPH,
  SF_MAT,
  PICK_LENGTH,
  PICK_DIRECTION 
)

Custom constructor.

Parameters
SCENEGRAPHThe scenegraph where to look for intersections of the ray.
SF_MATStarting matrix of the ray.
PICK_LENGTHLength of the ray in meters.
PICK_DIRECTIONDirection of the ray.
def lib-server.Intersection.Intersection.set_pick_direction (   self,
  PICK_DIRECTION 
)

Sets the pick_direction attribute.

Parameters
PICK_DIRECTIONNew pick direction.
def lib-server.Intersection.Intersection.set_pick_length (   self,
  PICK_LENGTH 
)

Sets the pick_length attribute.

Parameters
PICK_LENGTHNew pick length.

Member Data Documentation

lib-server.Intersection.Intersection.activated = True
static

Indicates if the intersection computation is activated or not.

In the last case, nothing will be written in mf_pick_result.

lib-server.Intersection.Intersection.mf_pick_result = avango.gua.MFPickResult()
static

Intersections of the ray with the objects in the scene.

lib-server.Intersection.Intersection.pick_direction

Direction of the ray.

lib-server.Intersection.Intersection.pick_length

Length of the ray in meters.

lib-server.Intersection.Intersection.picking_mask

Picking mask of the intersection process.

lib-server.Intersection.Intersection.picking_options

Picking options for the intersection process.

lib-server.Intersection.Intersection.ray

The spatial ray to be analyzed.

lib-server.Intersection.Intersection.SCENEGRAPH

Reference to the scenegraph.

lib-server.Intersection.Intersection.sf_pick_mat = avango.gua.SFMatrix4()
static

Starting matrix of the ray to be analyzed.


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