12 #ifndef __GEO_Point_H__
13 #define __GEO_Point_H__
33 : GA_GBElement(index_map, offset) { }
35 : GA_GBElement(src) { }
62 copyAttribData(src, src_dict, dest_dict,
true);
69 copyAttribData(src, src_dict.getSet(), dest_dict.getSet(),
true);
74 copyAttribData(src, dict,
true);
79 copyAttribData(src, dict.getSet(),
true);
101 void setPos3D(
float x,
float y,
float z,
float w);
106 void setPos2D(
float x,
float y,
float w);
202 : myPoint(gdp->getPointMap(),
offset)
206 : myPoint(gdp.getPointMap(),
offset)
210 : myPoint(that.myPoint)
220 bool operator!()
const
222 return !myPoint.isGAValid();
225 operator
bool()
const
227 return myPoint.isGAValid();
237 return myPoint.getMapOffset();
266 return (myPoint.getMapOffset() == that->getMapOffset()) &&
267 (&myPoint.getDetail() == &that->getDetail());
272 return !((*this)==that);
278 return !that || !that->isGAValid();
279 if (!that || !that->isGAValid())
281 return (myPoint.getMapOffset() == that->getMapOffset()) &&
282 (&myPoint.getDetail() == &that->getDetail());
287 return !((*this)==that);
364 &h.getAttribute()->getDetail() == &
getDetail());
380 &h.getAttribute()->getDetail() == &
getDetail());
415 return static_cast<GEO_Point*
>((*this).GA_GBPointP::operator->());
420 return static_cast<GEO_Point&
>((*this).GA_GBPointP::operator*());
425 return GEO_Point((*this)->getIndexMap(), (*this)->getMapOffset());
UT_Vector2 getPos2(GA_Offset ptoff) const
The ptoff passed is the point offset.
A class to manage an ordered array which has fixed offset handles.
Definition of a geometry attribute.
GA_Offset getMapOffset() const
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
void setPos3D(const UT_Vector4 &p)
#define SYS_DEPRECATED_PUSH_DISABLE()
UT_Vector4 getPos4(GA_Offset ptoff) const
The ptoff passed is the point offset.
#define SYS_DEPRECATED_POP_DISABLE()
SYS_FORCE_INLINE T * SYSconst_cast(const T *foo)
GLdouble GLdouble GLdouble z
constexpr SYS_FORCE_INLINE T & z() noexcept
GA_GBElement & operator=(const GA_GBElement &src)
SYS_FORCE_INLINE UT_Vector3 getPos3(GA_Offset ptoff) const
The ptoff passed is the point offset.
A string map of attributes to ease backward compatibility In the GB/GEO/GU library code would often p...
SYS_FORCE_INLINE UT_Vector3D getPos3D(GA_Size i) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void setPos2D(const UT_Vector3 &p)
This class provides a way to manage a reference to an attribute permitting Read-Write access...
void setPos4(GA_Offset ptoff, const UT_Vector4 &pos)
Set P from a UT_Vector4.
IMATH_NAMESPACE::V2f float
fpreal getPw(GA_Offset ptoff) const
Get the homogeneous coordinate for a point.
This class provides a way to manage a reference to an attribute permitting Read-Only access...
void setPw(GA_Offset ptoff, fpreal w)
Set the homogeneous coordinate for a point.
virtual const GA_AIFSharedStringTuple * getAIFSharedStringTuple() const
Return the attribute's shared string tuple interface or NULL.
GA_Detail & getDetail() const
Provide access to the GA_Detail containing this element.
#define GA_INVALID_STRING_INDEX
#define SYS_DEPRECATED_HDK(__V__)
GLfloat GLfloat GLfloat GLfloat h
SYS_FORCE_INLINE void setPos3(GA_Offset ptoff, const UT_Vector3 &pos)
Set P from a UT_Vector3.
const UT_Vector2 getPos2() const
A specialization of GA_AIFStringTuple to access "shared strings".
GA_BlobIndex GA_StringIndexType
Container class for all geometry.
GA_GBPoint(const GA_GBPoint &src)
GLubyte GLubyte GLubyte GLubyte w
const UT_Vector4 getPos3D() const
GA_GBPoint(const GA_IndexMap &index_map, GA_Offset offset)
const UT_Vector3 getPos2D() const
constexpr SYS_FORCE_INLINE T & y() noexcept
void setPos2(GA_Offset ptoff, const UT_Vector2 &pos)
Set P from a UT_Vector2.
virtual GA_StringIndexType getHandle(const GA_Attribute *attrib, GA_Offset ai, int tuple_index=0) const =0
Get the handle from the array for a single tuple of an element.
constexpr SYS_FORCE_INLINE T & y() noexcept
constexpr SYS_FORCE_INLINE T & x() noexcept
const GA_IndexMap & getIndexMap() const
Provide access to the GA_IndexMap containing this element.