Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / FL_Cube / test_i.h
blob62ea39f6dbca936e7d1562bfea1515cbd8479be6
2 //=============================================================================
3 /**
4 * @file test_i.h
6 * @author Carlos O'Ryan
7 */
8 //=============================================================================
11 #ifndef TAO_FL_SERVER_TEST_I_H
12 #define TAO_FL_SERVER_TEST_I_H
14 #include "testS.h"
16 #include <FL/Fl_Gl_Window.H>
19 class Simple_Window : public Fl_Gl_Window
21 public:
22 /// Constructor
23 Simple_Window (int x, int y, int w, int h,
24 const char * l = 0);
26 void set_x_angle (CORBA::Long x);
27 void set_y_angle (CORBA::Long y);
29 private:
30 /// from the Fl_Gl_Window...
31 virtual void draw ();
33 virtual void draw_cube ();
35 /// The angles...
36 CORBA::Long x_angle_;
37 CORBA::Long y_angle_;
39 /// The vertices of the cube
40 float boxv0[3]; float boxv1[3];
41 float boxv2[3]; float boxv3[3];
42 float boxv4[3]; float boxv5[3];
43 float boxv6[3]; float boxv7[3];
46 /**
47 * @class Simple_Server_i
49 * @brief Simpler Server implementation
51 * Implements the Simple_Server interface in test.idl
53 class Simple_Server_i : public POA_Simple_Server
55 public:
56 /// ctor
57 Simple_Server_i (CORBA::ORB_ptr orb,
58 Simple_Window* window);
60 // = The Simple_Server methods.
61 void set_x_angle (CORBA::Long x);
62 void set_y_angle (CORBA::Long y);
63 void shutdown ();
65 private:
66 /// The ORB
67 CORBA::ORB_var orb_;
69 /// Display the graphics...
70 Simple_Window* window_;
73 #endif /* TAO_FL_SERVER_TEST_I_H */