SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送

DxExLate3D.hpp

解説を見る。
00001 
00002 
00003 #ifndef _DxExDXFWire__
00004 #define _DxExDXFWire__
00005 
00006 
00007 
00008 #include "B_3d_lib.h"
00009 
00013 class DxExDXFWire{
00014     struct polygon_type m_polygon;
00015     int m_vertex_num;       //DXF頂点の数
00016     bool m_loaded;
00017 public:
00018     DxExDXFWire(){
00019         m_vertex_num=0;
00020         m_polygon = set_poly();
00021         m_loaded = false;
00022     }
00023     polygon_type &GetPolyRef(){return m_polygon;}
00024     virtual ~DxExDXFWire(){Release();}
00025     void Release(){
00026         if(m_loaded){
00027             if(m_polygon.men){
00028                 free(m_polygon.men);
00029                 m_polygon.men = NULL;
00030                 m_loaded = false;
00031             }
00032         }
00033         m_polygon = set_poly();
00034     }
00035     int Draw(int);
00036     int LoadDXF(char *filename);
00037     void MoveX(float x){        GetPolyRef().wx += x;}
00038     void MoveY(float y){    GetPolyRef().wy += y;}
00039     void MoveZ(float z){ GetPolyRef().wz += z;}
00040     void SetX(float x){ GetPolyRef().wx = x;}
00041     void SetY(float y){ GetPolyRef().wy = y;}
00042     void SetZ(float z){ GetPolyRef().wz = z;}
00043     float GetX(){return GetPolyRef().wx;}
00044     float GetY(){return GetPolyRef().wy;}
00045     float GetZ(){return GetPolyRef().wz;}
00046     void RotateX(int x){    GetPolyRef().xradian += x; }
00047     void RotateY(int y){    GetPolyRef().yradian += y; }
00048     void RotateZ(int z){    GetPolyRef().zradian += z; }
00049     int DrawRadian(int x,int y,int c){
00050         return ::DrawFormatString( x,y,c,
00051                 "xradian = %f,yradian = %f,zradian= %f",
00052                 GetPolyRef().xradian,
00053                 GetPolyRef().yradian,
00054                 GetPolyRef().zradian
00055             );
00056     }
00057     int DrawXYZ(int x,int y,int c){
00058         return ::DrawFormatString( x,y,c,
00059                 "x = %f,y = %f,z= %f",
00060                 GetX(),
00061                 GetY(),
00062                 GetZ()
00063             );
00064     }
00065     float GetXRadian(){return GetPolyRef().xradian;}
00066     float GetYRadian(){return GetPolyRef().yradian;}
00067     float GetZRadian(){return GetPolyRef().zradian;}
00068     void SetXRadian(float x){GetPolyRef().xradian = x;}
00069     void SetYRadian(float y){GetPolyRef().yradian = y;}
00070     void SetZRadian(float z){GetPolyRef().zradian = z;}
00071 };
00072 
00073 #endif

DxLib Extension Library ( DxEx )に対してThu Aug 21 13:18:57 2003に生成されました。 doxygen1.3