Ignore:
Timestamp:
01/15/06 04:23:51 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Beam.h

    r532 r540  
    1010class KdNode; 
    1111class Intersectable; 
     12class Mesh; 
    1213 
    1314// the values need for rss tree update computed already inside the glrendererbuffer 
     
    7475  vector<Plane3> mPlanes; 
    7576 
     77  Mesh *mMesh; 
    7678     
     79  /** Constructs a beam from a spatial and a directional box. 
     80  */ 
    7781  void Construct(const AxisAlignedBox3 &box, 
    78           const AxisAlignedBox3 &dBox); 
     82                             const AxisAlignedBox3 &dBox); 
    7983   
    80   void ComputeFrustum(float &left, float &right, 
    81                                           float &bottom, float &top, 
    82                                           float &near, float &far, 
    83                                           const AxisAlignedBox3 &sceneBBox) const; 
     84  /** Computes parameters for glFrustum. 
     85  */ 
     86  void ComputePerspectiveFrustum(float &left, float &right, 
     87                                                                 float &bottom, float &top, 
     88                                                                 float &near, float &far, 
     89                                                                 const AxisAlignedBox3 &sceneBBox) const; 
     90 
     91  /* Computes parameters for glOrtho. 
     92  */ 
     93  void ComputeOrthoFrustum(float &left, float &right, 
     94                                                   float &bottom, float &top, 
     95                                                   float &near, float &far, 
     96                                                   const AxisAlignedBox3 &sceneBBox) const; 
    8497 
    8598  int ComputeIntersection(const AxisAlignedBox3 &box); 
     
    90103  bool SetValid() { return mFlags |= VALID; } 
    91104 
    92   Beam():mFlags(STORE_KD_NODES+STORE_OBJECTS), mKdNodes(0), mObjects(0), mViewCells(0) 
     105  Beam():mFlags(STORE_KD_NODES+STORE_OBJECTS), mKdNodes(0), mObjects(0), mViewCells(0), mMesh(NULL) 
    93106  { 
    94107  } 
     108 
     109  void CreateMesh(const float zfar); 
    95110}; 
    96111 
Note: See TracChangeset for help on using the changeset viewer.