Changeset 1189 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
- Timestamp:
- 08/09/06 10:49:20 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1186 r1189 1587 1587 int FilterRays(KdLeaf *leaf, const RayInfoContainer &rays, RayInfoContainer &filteredRays); 1588 1588 1589 int SplitViewCells(1590 const AxisAlignedPlane &candidatePlane,1591 const RayInfoContainer &rays,1592 KdLeaf *leaf,1593 ViewCellContainer &frontViewCells,1594 ViewCellContainer &backViewCells,1595 ViewCellContainer &frontAndBackViewCells) const;1596 1597 1589 /** Adds the object to the pvs of the front and back leaf with a given classification. 1598 1590 … … 1641 1633 /** Evaluate the contributions of view cell volume of the left and the right view cell. 1642 1634 */ 1643 void EvalVolumeContribution(const VssRay &ray, 1644 float &volLeft, 1645 float &volRight); 1646 1635 void EvalRayContribution(KdLeaf *leaf, 1636 const VssRay &ray, 1637 float &renderCost); 1638 void EvalViewCellContribution(KdLeaf *leaf, 1639 ViewCell *viewCell, 1640 float &renderCost); 1647 1641 /** Evaluates the influence on the pvs of the event. 1648 1642 @param ve the visibility event … … 1652 1646 void EvalHeuristicsContribution(KdLeaf *leaf, 1653 1647 const SortableEntry &ci, 1654 float &volLeft, 1655 float &volRight, 1656 int &pvsLeft, 1657 int &pvsRight); 1648 float &renderCost, 1649 ViewCellContainer &touchedViewCells); 1658 1650 1659 1651 /** Prepares objects for the cost heuristics. 1660 1652 @returns pvs size of the node 1661 1653 */ 1662 float PrepareHeuristics(const OspTraversalData &tData, int &numViewCells);1654 float PrepareHeuristics(const OspTraversalData &tData, ViewCellContainer &touchedViewCells); 1663 1655 1664 1656 /** Prepares heuristics for a particular ray. 1665 1657 */ 1666 float PrepareHeuristics(const VssRay &ray, int &numViewCells);1658 void PrepareHeuristics(const VssRay &ray, ViewCellContainer &touchedViewCells); 1667 1659 1668 1660 /** Prepares construction for vsp and osp trees. … … 1726 1718 1727 1719 int UpdateViewCellsPvs(KdLeaf *leaf, const RayInfoContainer &rays) const; 1728 int OspTree::CheckViewCellsPvs(KdLeaf *leaf,1720 int CheckViewCellsPvs(KdLeaf *leaf, 1729 1721 const RayInfoContainer &rays) const; 1730 1722 bool AddViewCellToObjectPvs( … … 1741 1733 RayInfoContainer &backRays) const; 1742 1734 1735 void CollectTouchedViewCells( 1736 const RayInfoContainer &rays, 1737 ViewCellContainer &touchedViewCells) const; 1738 1739 void AddObjectContribution(KdLeaf *leaf, 1740 Intersectable * obj, 1741 ViewCellContainer &touchedViewCells, 1742 float &renderCost); 1743 void SubtractObjectContribution(KdLeaf *leaf, 1744 Intersectable * obj, 1745 ViewCellContainer &touchedViewCells, 1746 float &renderCost); 1743 1747 protected: 1744 1748
Note: See TracChangeset
for help on using the changeset viewer.