5 #ifndef _MGPlaneImage_HH_
6 #define _MGPlaneImage_HH_
10 #include "mgGL/Image.h"
11 #include "mgGL/texture.h"
41 m_rightTexCoord(0.),m_topTexCoord(0.){;};
52 double pixelSizeWidth,
53 double pixelSizeHeight=-1.
149 std::string
whoami()
const{
return "PlaneImage";};
157 std::ostream&
out(std::ostream&)
const;
166 double totalWidth()
const;
169 double totalHeight()
const;
174 double m_pixelSizeWidth, m_pixelSizeHeight;
177 double m_rightTexCoord, m_topTexCoord;
181 MGBox* compute_box()
const;
void WriteMembers(MGOfstream &buf) const
メンバデータを書き込む関数
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
MGPlane is infinite plane in 3D space.
Definition: Plane.h:38
double param_s_u() const
Return starting parameter value.
Definition: PlaneImage.h:120
long identify_type() const
Return This object's typeID.
Definition: PlaneImage.h:92
double param_s_v() const
Definition: PlaneImage.h:121
void ReadMembers(MGIfstream &buf)
メンバデータを読み込む関数
MGImage defines bit map image data.
Definition: Image.h:26
MGImage & get_image()
Definition: PlaneImage.h:89
double pixelSizeWidth() const
Definition: PlaneImage.h:160
int height() const
Definition: Image.h:88
virtual void drawWire(mgVBO &vbo, double span_length, int line_density=1) const
Draw 3D curve in world coordinates.
Definition: Surface.h:251
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
virtual MGPosition center() const
Obtain ceter coordinate of the geometry.
Definition: Plane.h:178
virtual MGPosition perimeter_uv(int i, double t) const
int image_height() const
Definition: PlaneImage.h:96
Vector of a general n space dimension.
Definition: Vector.h:26
virtual void shade(mgVBO &vbo, const MGDrawParam ¶, mgVBO::ELEMENT_TARGET target=mgVBO::SHADING) const
Shade the object in world coordinates.
Definition: Plane.h:247
virtual MGBox param_range() const
Defines a Box of any space dimendion.
Definition: Box.h:34
Defines parameters to draw MGObject, maily to approximate by lines and facets.
Definition: drawParam.h:53
virtual MGCurve * parameter_curve(int is_u, double x) const
Represent a positional data.
Definition: Position.h:28
std::string whoami() const
Definition: PlaneImage.h:149
double param_e_u() const
Return ending parameter value.
Definition: PlaneImage.h:111
Texture definition class.
Definition: Texture.h:29
ELEMENT_TARGET
Definition: VBO.h:84
virtual MGPvector< MGCurve > skeleton(int density=1) const
MGImage m_image
Definition: PlaneImage.h:35
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
double pixelSeizeHeight() const
Definition: PlaneImage.h:163
int perimeter_num() const
Return how many perimeters this surface has.
Definition: PlaneImage.h:135
virtual MGCurve * perimeter_curve(int i) const
Definition: Plane.h:462
MGPlaneImage defines square image plane.
Definition: PlaneImage.h:31
double param_e_v() const
Definition: PlaneImage.h:112
MGPlaneImage()
Definition: PlaneImage.h:40
std::ostream & out(std::ostream &) const
int width() const
Definition: Image.h:87
int image_width() const
Definition: PlaneImage.h:95
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
MGPlane & operator=(const MGPlane &gel2)
void drawWire(mgVBO &vbo, double span_length, int line_density=1) const
Draw the image in world coordinates using texture.
Definition: PlaneImage.h:70
const MGImage & get_image() const
Definition: PlaneImage.h:88