VR-Forces 4.1 Class Documentation
boundingVolumeTerrainSourcePager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
16 
20 {
21 public:
22 
24 
26 
31  virtual bool pageInGeometry(const DtTerrainPagingGeometryPtr geometry,
32  const unsigned int intersectId = 0) = 0;
33 
37  virtual bool pageOutNodes(std::list<DtNodeId>& nodesToRemove) = 0;
38 
39  virtual void updateTerrain(const unsigned int intersectId = 0) = 0;
40 
41  virtual void updatePageTracker(const unsigned int intersectId = 0) = 0;
42 
43 protected:
46  {
47  public:
48  DtBoundingVolumeActivePageVisitor(unsigned int intersectId = 0);
49 
50  const DtNodeBoundingInfoList& pagedOutBoundingVolumes() const;
51  const DtNodeBoundingInfoMap& pagedInBoundingVolumes() const;
52  bool noValidAreas() const;
53 
54  protected:
55  void pushBound(osg::Node& node);
56  void popBound();
57 
58  bool addToPagedOutVolumesList(const DtNodeBoundingInfoPtr pagedOutArea);
59 
60  protected:
64  std::stack<osg::BoundingSphere> myBoundingNodeStack;
65  unsigned int myIntersectId;
66  };
67 
68 };

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)