32 #ifndef VLXWrapper_Core_INCLUDE_ONCE 33 #define VLXWrapper_Core_INCLUDE_ONCE 42 #define VLX_IMPORT_CHECK_RETURN(Condition, Obj) \ 45 s.signalImportError( vl::Say("Line %n : condition failed : %s\n\tsee %s : %n\n") << (Obj).lineNumber() << #Condition << __FILE__ << __LINE__ ); \ 49 #define VLX_IMPORT_CHECK_RETURN_NULL(Condition, Obj) \ 52 s.signalImportError( vl::Say("Line %n : condition failed : %s\n\tsee %s : %n\n") << (Obj).lineNumber() << #Condition << __FILE__ << __LINE__ ); \ 72 for(
size_t i=0; i<vlx->
value().size(); ++i)
74 const std::string& key = vlx->
value()[i].key();
76 if (key ==
"MinCorner")
82 if (key ==
"MaxCorner")
106 for(
size_t i=0; i<vlx->
value().size(); ++i)
108 const std::string& key = vlx->
value()[i].key();
Wrapper for all VLX value types.
const vec3 & center() const
Returns the center of the sphere.
VLXValue export_Sphere(const vl::Sphere &sphere)
vl::vec3 vlx_vec3(const VLXArrayReal *arr)
VLXStructure * getStructure()
real radius() const
Returns the radius of the sphere.
A list of key/VLXValue pairs, can also have a tag.
vl::Sphere import_Sphere(const VLXStructure *vlx)
The AABB class implements an axis-aligned bounding box using vl::real precision.
const vec3 & maxCorner() const
Returns the corner of the AABB with the maximum x y z coordinates.
void setMinCorner(real x, real y, real z)
Sets the corner of the AABB with the minimum x y z coordinates.
void setRadius(real radius)
Sets the radius of the sphere.
const std::string & tag() const
void setMaxCorner(real x, real y, real z)
Sets the corner of the AABB with the maximum x y z coordinates.
std::vector< KeyValue > & value()
The Sphere class defines a sphere using a center and a radius using vl::real precision.
const vec3 & minCorner() const
Returns the corner of the AABB with the minimum x y z coordinates.
VLXValue vlx_toValue(const std::vector< int > &vec)
VLXArrayReal * getArrayReal()
vl::AABB import_AABB(const VLXStructure *vlx)
void setCenter(const vec3 ¢er)
Sets the center of the sphere.
VLXValue export_AABB(const vl::AABB &aabb)