Itasca C++ Interface
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
itascaxd::IGeomEdge Class Referenceabstract

Interface for a user-defined geometric edge, defined as the line between two IGeomPoint objects. More...

#include <igeomedge.h>

Public Member Functions

virtual IThinggetIThing ()=0
 Return an IThing interface for this object.
 
virtual const IThinggetIThing () const =0
 Return a const IThing interface for this object.
 
virtual IGeomPointgetPoint (uint32 end)=0
 Returns a pointer to the IGeomPoint associated with end 0 or 1. Returns 0 if end > 1. May be null if the edge is currently invalid.
 
virtual const IGeomPointgetPoint (uint32 end) const =0
 Returns a pointer to the IGeomPoint associated with end 0 or 1. Returns 0 if end > 1. May be null if the edge is currently invalid.
 
virtual void setPoint (IGeomPoint *point, uint32 end)=0
 
virtual bool isValid () const =0
 Returns true if the edge is currently valid, that is if both ends (0 and 1) are assigned to a non-null IGeomPoint object.
 
virtual bool isFake () const =0
 Returns true if the edge is fake meaning that the edge exists and valid but user should not be able to see and interact with it.
 
virtual DVect getCentroid () const =0
 Returns the centroid of the edge.
 
virtual double getLength () const =0
 Returns the distance between the two IGeomPoint objects, return 0.0 if not valid.
 
virtual DVect getDirection () const =0
 Returns the unit vector from end 0 to end 1. Returns DVect(0) if not valid.
 
virtual DVect getVector () const =0
 Returns the vector from end 0 to end 1. Return DVect(0) if not valid.
 
virtual DVect getClosestPoint (const DVect &pos) const =0
 Returns the point on the edge closes to the point pos. Returns DVect(0) if not valid.
 
virtual CLinkType< IGeomEdgegetNext (uint32 end) const =0
 Returns an interface to a CLinkType<> object, a const pointer to the next object in the linked list.
 
virtual LinkType< IGeomEdgegetNext (uint32 end)=0
 Returns an interface to a LinkType<> object, a pointer to the next object in the linked list.
 
virtual CLinkType< IGeomPolygetStart () const =0
 Returns an interface to a CLinkType<> object, a const pointer to the first object in the linked list.
 
virtual LinkType< IGeomPolygetStart ()=0
 Returns an interface to a LinkType<> object, a pointer to the first object in the linked list.
 
virtual int getPolyOrder () const =0
 Returns number of polygon faces attached.
 
virtual const GeomBase * getGeomBase () const =0
 Return const GeomBase.
 
virtual DVect convertToGlobal (double u) const =0
 Convert to global coordinate the point on edge. If u = 0.0 it will be position of point(0), if u=1.0 – position of point(1). Returns zero vector if edge is not valid.
 
virtual double convertToLocal (const DVect &pos) const =0
 Convert o local edge coordinate.
 

Static Public Attributes

static const TType type_ = 0x4c815bcc
 The type identification number for this class, for use in convert_cast() and convert_getcast().
 

Detailed Description

Interface for a user-defined geometric edge, defined as the line between two IGeomPoint objects.

Member Function Documentation

◆ setPoint()

virtual void itascaxd::IGeomEdge::setPoint ( IGeomPoint * point,
uint32 end )
pure virtual

Sets the point associated with end 0 or 1, has no effect if end > 1. point may be null, rendering the edge invalid. This will cause an edgeMoved signal in the containing IGeomSet, if applicable.


The documentation for this class was generated from the following file: