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.LGPL **
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 ICL_HAVE_OPENGL
00035 #if WIN32
00036 #pragma WARNING("this header must not be included if ICL_HAVE_OPENGL is not defined")
00037 #else
00038 #warning "this header must not be included if ICL_HAVE_OPENGL is not defined"
00039 #endif
00040 #else
00041 
00042 #include <ICLUtils/CompatMacros.h>
00043 #include <ICLGeom/SceneObject.h>
00044 #include <ICLUtils/Mutex.h>
00045 
00046 namespace icl{
00047   namespace geom{
00048     
00050 
00057     class ComplexCoordinateFrameSceneObject : public SceneObject{
00059       utils::Mutex mutex;
00060   
00062       float axisLength;
00063       
00065       float axisThickness;
00066       
00067       public:
00068       
00070       ICLGeom_API ComplexCoordinateFrameSceneObject(float axisLength=100,float axisThickness=5, 
00071                                         bool withXYZLabels=true);
00072   
00074       ICLGeom_API void setParams(float axisLength, float axisThickness, bool withXYZLabels = true);
00075       
00077       inline float getAxisLength() const { return axisLength; }
00078   
00080       inline float getAxisThickness() const { return axisThickness; }
00081       
00083       virtual void lock() { mutex.lock(); }
00084   
00086       virtual void unlock() { mutex.unlock(); }
00087     };
00088   } // namespace geom
00089 }
00090 
00091 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines