Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
ComplexCoordinateFrameSceneObject.h
Go to the documentation of this file.
00001 /********************************************************************
00002 **                Image Component Library (ICL)                    **
00003 **                                                                 **
00004 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld          **
00005 **                         Neuroinformatics Group                  **
00006 ** Website: www.iclcv.org and                                      **
00007 **          http://opensource.cit-ec.de/projects/icl               **
00008 **                                                                 **
00009 ** File   : ICLGeom/src/ICLGeom/ComplexCoordinateFrameSceneObject. **
00010 **          h                                                      **
00011 ** Module : ICLGeom                                                **
00012 ** Authors: Christof Elbrechter                                    **
00013 **                                                                 **
00014 **                                                                 **
00015 ** GNU LESSER GENERAL PUBLIC LICENSE                               **
00016 ** This file may be used under the terms of the GNU Lesser General **
00017 ** Public License version 3.0 as published by the                  **
00018 **                                                                 **
00019 ** Free Software Foundation and appearing in the file LICENSE.GPL  **
00020 ** included in the packaging of this file.  Please review the      **
00021 ** following information to ensure the license requirements will   **
00022 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt                **
00023 **                                                                 **
00024 ** The development of this software was supported by the           **
00025 ** Excellence Cluster EXC 277 Cognitive Interaction Technology.    **
00026 ** The Excellence Cluster EXC 277 is a grant of the Deutsche       **
00027 ** Forschungsgemeinschaft (DFG) in the context of the German       **
00028 ** Excellence Initiative.                                          **
00029 **                                                                 **
00030 ********************************************************************/
00031 
00032 #pragma once
00033 
00034 #ifndef HAVE_OPENGL
00035 #warning "this header must not be included if HAVE_OPENGL is not defined"
00036 #else
00037 
00038 #include <ICLGeom/SceneObject.h>
00039 #include <ICLUtils/Mutex.h>
00040 
00041 namespace icl{
00042   namespace geom{
00043     
00045 
00052     class ComplexCoordinateFrameSceneObject : public SceneObject{
00054       utils::Mutex mutex;
00055   
00057       float axisLength;
00058       
00060       float axisThickness;
00061       
00062       public:
00063       
00065       ComplexCoordinateFrameSceneObject(float axisLength=100,float axisThickness=5, 
00066                                         bool withXYZLabels=true);
00067   
00069       void setParams(float axisLength, float axisThickness, bool withXYZLabels=true);
00070       
00072       inline float getAxisLength() const { return axisLength; }
00073   
00075       inline float getAxisThickness() const { return axisThickness; }
00076       
00078       virtual void lock() { mutex.lock(); }
00079   
00081       virtual void unlock() { mutex.unlock(); }
00082     };
00083   } // namespace geom
00084 }
00085 
00086 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines