9 #ifndef GlobeEngine_PolyLineExt_h
10 #define GlobeEngine_PolyLineExt_h
20 std::vector<vmml::Vector3d> points;
21 vmml::Vector3f position;
24 const std::pair<int, double> findMaximumDistance(
int _firstIndex,
int _secondIndex)
const;
30 void draw(std::shared_ptr<ge::Camera> _cam);
34 void setBack(
const vmml::Vector3d& _back);
35 const vmml::Vector3d&
getBack()
const;
40 vmml::Vector3d
pointAt(
int _inx);
41 const std::vector<vmml::Vector3d>&
getVec()
const;
51 static bool lineIntersection(vmml::Vector3f _p0, vmml::Vector3f _p1,vmml::Vector3f _p2, vmml::Vector3f _p3, vmml::Vector3f &_intersect);
52 void checkIntersections(vmml::Vector3f _p0, vmml::Vector3f _p1,std::vector<vmml::Vector3f> &_intersections);
54 std::shared_ptr<PolyLineExt>
createSubLine(vmml::Vector3f _p0,vmml::Vector3f _p1)
const;
Definition: DrawableComponent.h:25
std::shared_ptr< PolyLineExt > createSubLine(vmml::Vector3f _p0, vmml::Vector3f _p1) const
Definition: PolyLineExt.cpp:183
void create()
Definition: PolyLineExt.cpp:13
void setPosition(vmml::Vector3f _p)
Definition: PolyLineExt.h:45
void setColor(vmml::Vector3f _c)
Definition: PolyLineExt.h:46
const std::vector< vmml::Vector3d > & getVec() const
Definition: PolyLineExt.cpp:321
void createVAO()
Definition: PolyLineExt.cpp:48
void setBack(const vmml::Vector3d &_back)
Definition: PolyLineExt.cpp:285
unsigned int getPointCount() const
Definition: PolyLineExt.cpp:297
std::shared_ptr< PolyLineExt > createTessellatedLine(float _dt)
Definition: PolyLineExt.cpp:234
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: PolyLineExt.cpp:17
Definition: PolyLineExt.h:18
void simplifyWithRDP(int _firstIndex, int _lastIndex, double epsilon)
Definition: PolyLineExt.cpp:350
vmml::Vector3d pointAt(int _inx)
Definition: PolyLineExt.cpp:317
float geometricLength()
Definition: PolyLineExt.cpp:124
const vmml::Vector3d & getBack() const
Definition: PolyLineExt.cpp:289
unsigned int getLineCount() const
Definition: PolyLineExt.cpp:301
void push_back(vmml::Vector3f _point)
Definition: PolyLineExt.cpp:305
static bool lineIntersection(vmml::Vector3f _p0, vmml::Vector3f _p1, vmml::Vector3f _p2, vmml::Vector3f _p3, vmml::Vector3f &_intersect)
Definition: PolyLineExt.cpp:134
const vmml::Vector3d & getBackback() const
Definition: PolyLineExt.cpp:293
void checkIntersections(vmml::Vector3f _p0, vmml::Vector3f _p1, std::vector< vmml::Vector3f > &_intersections)
Definition: PolyLineExt.cpp:152
Definition: ClimateViewerComposition.h:13
void pop_back()
Definition: PolyLineExt.cpp:309
void update()
Definition: PolyLineExt.cpp:44
void clear()
Definition: PolyLineExt.cpp:313