Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// EndedObject.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#pragma once
#include "ExtrudedObj.h"
#include "HeeksColor.h"
class EndedObject : public ExtrudedObj<HeeksObj>{
protected:
HeeksColor color;
public:
Point3d A, B;
~EndedObject(void);
EndedObject(void);
EndedObject(const EndedObject& e);
const EndedObject& operator=(const EndedObject &b);
// HeeksObj's virtual functions
bool Stretch(const Point3d &p, const Point3d &shift, void* data);
void Transform(const Matrix& m);
bool GetStartPoint(Point3d &pos);
void SetStartPoint(const Point3d &pos);
bool GetEndPoint(Point3d &pos);
void SetEndPoint(const Point3d &pos);
void CopyFrom(const HeeksObj* object){ operator=(*((EndedObject*)object)); }
void SetColor(const HeeksColor &col){ color = col; }
const HeeksColor* GetColor()const{ return &color; }
void GetGripperPositions(std::list<GripData> *list, bool just_for_endof);
HeeksObj* MakeACopyWithID();
void WriteToXML(TiXmlElement *element);
void ReadFromXML(TiXmlElement* element);
int PickPriority(){ return 2; } // lines
};
c5721c306This file is pinned to the selected release. Download the original to open it in your design tool.