|
virtual shared_ptr< KDGrove > | makeCommon (vector< shared_ptr< ScenePart >> parts, bool const safe, bool const computeKDGroveStats, bool const reportKDGroveStats, bool const computeKDTreeStats, bool const reportKDTreeStats) |
| The common implementation of building a KDGrove. It handles the common building process for both full and merge non-moving modes. More...
|
|
virtual shared_ptr< KDGrove > | makeFull (vector< shared_ptr< ScenePart >> parts, bool const safe, bool const computeKDGroveStats, bool const reportKDGroveStats, bool const computeKDTreeStats, bool const reportKDTreeStats) |
| Build a KDGrove on a KDTree per ScenePart basis. More...
|
|
virtual shared_ptr< KDGrove > | makeMergeNonMoving (vector< shared_ptr< ScenePart >> parts, bool const safe, bool const computeKDGroveStats, bool const reportKDGroveStats, bool const computeKDTreeStats, bool const reportKDTreeStats) |
| Build a KDGrove where all non moving scene parts are merged to build a single KDTree. More...
|
|
|
shared_ptr< KDTreeFactory > | kdtf |
| The KDTree factory used to build trees composing the grove.
|
|
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
| Serialize a KDGrove factory to a stream of bytes. More...
|
|
|
class | boost::serialization::access |
|
◆ getKdtf()
◆ handleKDGroveStats()
void KDGroveFactory::handleKDGroveStats |
( |
shared_ptr< KDGrove > |
kdgrove, |
|
|
vector< double > & |
buildingTimes, |
|
|
vector< int > & |
treePrimitives |
|
) |
| |
Method to handle the update of KDGrove stats after all KDTrees and the KDGrove itself have been created.
- Parameters
-
kdgrove | The KDGrove which stats must be computed |
buildingTimes | The building time for each tree inside the KDGrove |
treePrimitives | The number of primitives for each tree inside the KDGrove |
◆ makeCommon()
shared_ptr< KDGrove > KDGroveFactory::makeCommon |
( |
vector< shared_ptr< ScenePart >> |
parts, |
|
|
bool const |
safe, |
|
|
bool const |
computeKDGroveStats, |
|
|
bool const |
reportKDGroveStats, |
|
|
bool const |
computeKDTreeStats, |
|
|
bool const |
reportKDTreeStats |
|
) |
| |
|
protectedvirtual |
◆ makeFromSceneParts()
shared_ptr< KDGrove > KDGroveFactory::makeFromSceneParts |
( |
vector< shared_ptr< ScenePart >> |
parts, |
|
|
bool const |
mergeNonMoving = false , |
|
|
bool const |
safe = false , |
|
|
bool const |
computeKDGroveStats = false , |
|
|
bool const |
reportKDGroveStats = false , |
|
|
bool const |
computeKDTreeStats = false , |
|
|
bool const |
reportKDTreeStats = false |
|
) |
| |
|
virtual |
Bulid a KDGrove from given scene parts.
- Parameters
-
parts | Scene parts to build KDGrove from |
mergeNonMoving | If true, all primitives from non moving objects will be merged to build a single static KDTree. If false, then one KDTree will be built for each static object. |
computeKDGroveStats | If true, KDGrove stats will be computed. If false, they will not |
reportKDGroveStats | If true, KDGrove stats will be reported. If false, they will not |
computeKDTreeStats | If true, stats for each KDTree will be computed. If false, they will not |
reportKDTreeStats | If true, stats for each KDTree will be reported. If false, they will not |
- Returns
- Build KDGrove
- See also
- KDGrove
-
KDGroveFactory::makeFull
-
KDGroveFactory::makeMergeNonMoving
◆ makeFull()
shared_ptr< KDGrove > KDGroveFactory::makeFull |
( |
vector< shared_ptr< ScenePart >> |
parts, |
|
|
bool const |
safe, |
|
|
bool const |
computeKDGroveStats, |
|
|
bool const |
reportKDGroveStats, |
|
|
bool const |
computeKDTreeStats, |
|
|
bool const |
reportKDTreeStats |
|
) |
| |
|
protectedvirtual |
◆ makeMergeNonMoving()
shared_ptr< KDGrove > KDGroveFactory::makeMergeNonMoving |
( |
vector< shared_ptr< ScenePart >> |
parts, |
|
|
bool const |
safe, |
|
|
bool const |
computeKDGroveStats, |
|
|
bool const |
reportKDGroveStats, |
|
|
bool const |
computeKDTreeStats, |
|
|
bool const |
reportKDTreeStats |
|
) |
| |
|
protectedvirtual |
◆ serialize()
template<class Archive >
void KDGroveFactory::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inlineprivate |
Serialize a KDGrove factory to a stream of bytes.
- Template Parameters
-
- Parameters
-
ar | Specific rendering for the stream of bytes |
version | Version number for hte K dimensional grove factory |
◆ setKdtf()
The documentation for this class was generated from the following files: