19 #include <ubit/uattr.hpp> 20 #include <ubit/ubox.hpp> 21 #include <ubit/uctlmenu.hpp> 22 #include <ubit/uview.hpp> 40 static UStyle* createStyle();
42 float getFovy()
const {
return fovy;}
43 float getAspect()
const {
return aspect;}
44 float getNear()
const {
return near;}
45 float getFar()
const {
return far;}
47 void setFovy(
float f) {fovy = f;}
48 void setAspect(
float a) {aspect = a;}
49 void setNear(
float n) {near = n;}
50 void setFar(
float f) {far = f;}
54 float fovy, aspect, near, far;
80 static UStyle* createStyle();
87 U3Dbox& setTrans(
float x,
float y,
float z);
88 U3Dbox& setRot(
float x_rot,
float y_rot,
float z_rot);
89 U3Dbox& translate(
float delta_x,
float delta_y,
float delta_z);
90 U3Dbox& rotate(
float delta_x_rot,
float delta_y_rot,
float delta_z_rot);
109 static UStyle* createStyle();
112 virtual UBox& createTitleBar(
const UStr& title);
135 U3Dpos(
float x,
float y,
float z);
138 float getZ()
const {
return z;}
139 float getXRot()
const {
return x_rot;}
140 float getYRot()
const {
return y_rot;}
141 float getZRot()
const {
return z_rot;}
143 U3Dpos& setTrans(
float x,
float y,
float z);
144 U3Dpos& setRot(
float x_rot,
float y_rot,
float z_rot,
bool update =
true);
145 U3Dpos& translate(
float delta_x,
float delta_y,
float delta_z);
146 U3Dpos& rotate(
float delta_x_rot,
float delta_y_rot,
float delta_z_rot);
153 virtual void setImpl(
float _x,
float _y,
bool upd);
154 virtual void setImpl(
float _x,
float _y,
float _z,
bool upd);
161 float z, x_rot, y_rot, z_rot;
164 inline U3Dpos& u3dpos(
float x,
float y,
float z) {
return *
new U3Dpos(x, y, z);}
176 virtual UViewStyle* getViewStyle() {
return &style;}
[Instable/OpenGL] 3D canvas: makes it possible to display children in 3D space.
Definition: u3d.hpp:31
Widget position.
Definition: uboxgeom.hpp:91
Definition: uviewImpl.hpp:92
virtual bool is3Dpos() const
returns true if this is a U3Dpos.
Definition: u3d.hpp:148
Box container.
Definition: ubox.hpp:64
2D Point.
Definition: ugeom.hpp:25
void update()
updates object graphics.
Definition: ubox.hpp:96
2D Rectangle.
Definition: ugeom.hpp:165
Definition: uviewImpl.hpp:141
lightweight general purpose container.
Definition: uelem.hpp:44
U3Dcanvas(UArgs a=UArgs::none)
creates a new 3D canvas;
Definition: u3d.cpp:281
[Instable/OpenGL] 3D position.
Definition: u3d.hpp:129
Smart Pointer for UObject instances (.
Definition: uobject.hpp:365
[Instable/OpenGL] 3D box: a box that can be orientated in 3D space.
Definition: u3d.hpp:73
U3Dpos & pos()
returns a reference to the 3D position of this 3D window.
Definition: u3d.hpp:82
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
[Instable/OpenGL] 3D window: framed U3Dbox with a title.
Definition: u3d.hpp:102
Box View.
Definition: uview.hpp:65
Specifies the View Style of an UBox.
Definition: uview.hpp:42
Definition: uupdatecontext.hpp:32
Definition: uhardfont.hpp:31
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
Definition: uwinImpl.hpp:84
Compiled Object Style.
Definition: ustyle.hpp:44
Ubit String.
Definition: ustr.hpp:72