ArcGIS Procedural Runtime
3.2.10650
|
#include <EncodePreparator.h>
Public Member Functions | |
bool | allMeshFacesConvex (size_t meshIndex) const |
bool | allMeshFacesPlanar (size_t meshIndex) const |
const GeometryPtr & | getGeometry () const |
uint32_t | getInitialShapeIndex () const |
const std::wstring & | getInitialShapeName () const |
const prtx::MaterialPtrVector & | getMaterials () const |
int32_t | getPrototypeIndex () const |
const ReportsPtr & | getReports () const |
uint32_t | getShapeId () const |
const std::wstring & | getShapeName () const |
const prtx::DoubleVector & | getTransformation () const |
Static Public Attributes | |
static const uint32_t | NO_INITIAL_SHAPE_INDEX = uint32_t(-1) |
static const int32_t | NO_PROTOTYPE_INDEX = -1 |
static const uint32_t | NO_SHAPE_ID = uint32_t(-1) |
Friends | |
class | EncodePreparator |
Container class for a finalized (= prepared) geometry instance.
bool prtx::EncodePreparator::FinalizedInstance::allMeshFacesConvex | ( | size_t | meshIndex | ) | const |
Returns true if all faces of mesh at index meshIndex are convex. Note: will always return false unless PreparatorFlags::determineMeshProperties() has been set to true.
bool prtx::EncodePreparator::FinalizedInstance::allMeshFacesPlanar | ( | size_t | meshIndex | ) | const |
Returns true if all faces of mesh at index meshIndex are planar. Note: will always return false unless PreparatorFlags::determineMeshProperties() has been set to true.
const GeometryPtr& prtx::EncodePreparator::FinalizedInstance::getGeometry | ( | ) | const |
Returns the prepared geometry with associated meshes, materials and textures. Note that the geometry is potentially shared across multiple instances.
uint32_t prtx::EncodePreparator::FinalizedInstance::getInitialShapeIndex | ( | ) | const |
Returns the initial shape index.
const std::wstring& prtx::EncodePreparator::FinalizedInstance::getInitialShapeName | ( | ) | const |
Returns the finalized initial shape name.
const prtx::MaterialPtrVector& prtx::EncodePreparator::FinalizedInstance::getMaterials | ( | ) | const |
Returns the finalized materials corresponding to the meshes in the geometry returned by getGeometry(). Note that in the case of enabled instancing, these are the final materials as specified in the rules, whereas the materials attached to the meshes are the original asset materials.
The size and order of the returned vector corresponds to the concatenation of all materials returned by prtx::Mesh::getMaterials().
int32_t prtx::EncodePreparator::FinalizedInstance::getPrototypeIndex | ( | ) | const |
Returns the prototype index. All instances which share the same cached geometry (= backed by an URI) have the same index. Returns NO_PROTOTYPE_INDEX if the geometry is not cached.
const ReportsPtr& prtx::EncodePreparator::FinalizedInstance::getReports | ( | ) | const |
Returns the reports of the shape this instance has originated from.
uint32_t prtx::EncodePreparator::FinalizedInstance::getShapeId | ( | ) | const |
Returns the id of the shape this geometry comes from.
const std::wstring& prtx::EncodePreparator::FinalizedInstance::getShapeName | ( | ) | const |
Returns the finalized name of the shape this geometry comes from.
const prtx::DoubleVector& prtx::EncodePreparator::FinalizedInstance::getTransformation | ( | ) | const |
Returns the to world transformation of this instance in column-major format.