- Timestamp:
- Mar 29, 2012, 10:55:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/transfer-function/ControlPoint.h
r2798 r2897 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* 3 * ---------------------------------------------------------------------- 4 * ControlPoint.h 5 * 6 * ====================================================================== 2 /* ====================================================================== 7 3 * AUTHOR: Wei Qiao <qiaow@purdue.edu> 8 4 * Purdue Rendering and Perceptualization Lab (PURPL) … … 14 10 * ====================================================================== 15 11 */ 12 #ifndef CONTROL_POINT_H 13 #define CONTROL_POINT_H 16 14 17 #ifndef _CONTROL_POINT_H_ 18 #define _CONTROL_POINT_H_ 19 20 class ControlPoint 15 class ControlPoint 21 16 { 22 17 public: 23 24 double x; 25 double y; 18 ControlPoint(double _x, double _y); 19 virtual ~ControlPoint(); 26 20 27 bool selected; 28 bool dragged; 21 void Set(double x, double y); 29 22 30 ControlPoint * next; 23 void glDraw(); //draw a cross 31 24 32 public: 33 void Set(double x, double y); 34 void glDraw(); //draw a cross 35 void glDraw_2(); //draw a filled squre 36 void glDraw_3(); //draw a circle 37 ControlPoint(double _x, double _y); 38 virtual ~ControlPoint(); 25 void glDraw_2(); //draw a filled squre 39 26 27 void glDraw_3(); //draw a circle 28 29 double x; 30 double y; 31 32 bool selected; 33 bool dragged; 34 35 ControlPoint * next; 40 36 }; 41 37
Note: See TracChangeset
for help on using the changeset viewer.