Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// CoordinateSystem.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#pragma once
#include "HeeksObj.h"
class CoordinateSystem: public HeeksObj
{
public:
Point3d m_o;
Point3d m_x;
Point3d m_y;
std::wstring m_title;
static double size;
static bool size_is_pixels; // false for mm
static bool rendering_current;
CoordinateSystem(){}
CoordinateSystem(const std::wstring& str, const Point3d &o, const Point3d &x, const Point3d &y);
CoordinateSystem(const CoordinateSystem &c);
~CoordinateSystem(void);
const CoordinateSystem& operator=(const CoordinateSystem &c);
// HeeksObj's virtual functions
int GetType()const{return CoordinateSystemType;}
void glCommands(bool select, bool marked, bool no_color);
void GetBox(CBox &box);
const wchar_t* GetTypeString(void)const{ return L"Coordinate System"; }
const wchar_t* GetXMLTypeString(void)const{ return L"CoordinateSystem"; }
const wchar_t* GetShortString(void)const{return m_title.c_str();}
bool CanEditString(void)const{return true;}
void OnEditString(const wchar_t* str);
HeeksObj *MakeACopy(void)const;
const wchar_t* GetIconFilePath();
void Transform(const Matrix &m);
void GetProperties(std::list<Property *> *list);
void GetGripperPositions(std::list<GripData> *list, bool just_for_endof);
bool GetScaleAboutMatrix(Matrix &m);
void WriteToXML(TiXmlElement *element);
void ReadFromXML(TiXmlElement *element);
Matrix GetMatrix();
void ApplyMatrix();
static void RenderArrow();
static void RenderRotateArrow();
static void RenderFootballHexagons();
static void RenderFootballPentagons();
static void RenderDatum(bool bright, bool solid, bool no_color); // render a coordinate system at 0, 0, 0
//static void GetAx2Properties(std::list<Property *> *list, Point3d& a, HeeksObj* object);
bool PickFrom3Points();
bool PickFrom1Point();
};
3a45ee0cdThis file is pinned to the selected release. Download the original to open it in your design tool.