12#ifndef WsfIntersectMesh_HPP
13#define WsfIntersectMesh_HPP
15#include "wsf_export.h"
20#include "UtDictionary.hpp"
21#include "UtIntersectMesh.hpp"
48 const std::string& aTargetOffset,
49 const double aErrorAngle,
50 double& aSurfaceDotProduct,
51 int& aMaterialPropertyCode,
54 UtIntersectMesh* LookupMesh(
const int aIndex);
56 void DefineOffset(
const std::string& aOffsetName,
double aOffsetX,
double aOffsetY,
double aOffsetZ);
58 bool RemoveOffset(
const std::string& aOffsetName);
62 WsfStringId GetTargetOffsetName(
unsigned aOffsetEntry)
const;
63 bool TargetOffsetExists(
const std::string& aTargetOffsetName)
const;
64 using MeshMap = std::map<unsigned int, UtIntersectMesh*>;
75 Offset(
double ax,
double ay,
double az)
86 using OffsetMap = std::map<unsigned int, Offset>;
87 using OffsetNameMap = std::map<WsfStringId, int>;
90 int LoadMesh(
const std::string& aMeshFileName);
93 OffsetNameMap mOffsetNameMap;
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
@ cWSF_COMPONENT_INTERSECT_MESH
A 'intersect_mesh" component (WsfIntersectMesh).
Definition WsfComponentRoles.hpp:113
WsfSimpleComponentT< WsfPlatformComponent > WsfSimplePlatformComponent
Definition WsfSimpleComponent.hpp:126
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfComponent.hpp:39
virtual WsfComponent * CloneComponent() const =0
Definition WsfIntersectMesh.hpp:32
WsfIntersectMesh()
Definition WsfIntersectMesh.cpp:48
std::map< unsigned int, UtIntersectMesh * > MeshMap
Definition WsfIntersectMesh.hpp:64
void ComponentParentChanged(WsfPlatform *aPlatformPtr) override
Definition WsfIntersectMesh.hpp:45
WsfIntersectMesh & operator=(const WsfIntersectMesh &)=delete
void * QueryInterface(int aRole) override
Definition WsfIntersectMesh.hpp:40
unsigned int GetTargetOffsetCount()
Definition WsfIntersectMesh.hpp:60
Definition WsfObject.hpp:40
WsfObject()
This is the constructor for the WsfObject class.
Definition WsfObject.cpp:88
virtual WsfObject * Clone() const =0
virtual bool ProcessInput(UtInput &aInput)
Definition WsfObject.cpp:140