#ifndef _TRAPEZOCUBE_H_ #define _TRAPEZOCUBE_H_ #include "gl.h" #include "Triangle.h" #include class Trapezocube { public: Trapezocube(): widthfront(0), widthback(0), height(0), depth(0), x(0), y(0), z(0), rotate(0), color(vmml::vec4f::ONE) {} Trapezocube(float widthfront, float widthback, float height, float depth, float x, float y, float z, float rotate, const vmml::vec4f &col) { setSize(widthfront, widthback, height, depth); setPos(x, y, z); setRotate(rotate); setColor(col); } float getHeight() {return height;} float getWidthFront() {return widthfront;} float getWidthBack() {return widthback;} float getDepth() {return depth;} float getPosX() {return x;} float getPosY() {return y;} float getPosZ() {return z;} float getRotate() {return rotate;} const vmml::vec4f& getColor() {return color;} void setSize(float wf, float wb, float h, float d) { widthfront = wf; widthback = wb; height = h; depth = d; } void setPos(float x, float y, float z) { this->x = x; this->y = y; this->z = z; } void setRotate(float r) {rotate = r;} void setColor(const vmml::vec4f &col) {color = col;} std::list getTriangles(); private: float x, y, z, widthfront, widthback, height, depth, rotate; vmml::vec4f color; }; #endif /*_TRAPEZOCUBE_H_ */