Open Inventor Reference
|
00001 /* 00002 * 00003 * Copyright (C) 2004 MeVis gGmbH All Rights Reserved. 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * Further, this software is distributed without any warranty that it is 00016 * free of the rightful claim of any third person regarding infringement 00017 * or the like. Any license provided herein, whether implied or 00018 * otherwise, applies only to this software file. Patent licenses, if 00019 * any, provided herein do not apply to combinations of this program with 00020 * other software, or any other product whatsoever. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this library; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 * Contact information: MeVis, Center for Medical Diagnostic Systems and 00027 * Visualization GmbH, Universitätsallee 29, D-28359 Bremen, GERMANY, or: 00028 * 00029 * http://www.mevis.de 00030 * 00031 */ 00032 00033 /* 00034 * Copyright (C) 2004 MeVis Research GmbH 00035 * 00036 _______________________________________________________________________ 00037 _______________ M E V I S R E S E A R C H G M B H _______________ 00038 | 00039 | Author(s) : Felix Ritter 00040 | 00041 _______________ M E V I S R E S E A R C H G M B H _______________ 00042 _______________________________________________________________________ 00043 */ 00044 00045 #ifndef _SO_POLYGON_OFFSET_ 00046 #define _SO_POLYGON_OFFSET_ 00047 00048 #include <Inventor/system/SbSystem.h> 00049 #include <Inventor/elements/SoPolygonOffsetElement.h> 00050 #include <Inventor/nodes/SoSubNode.h> 00051 #include <Inventor/fields/SoSFBitMask.h> 00052 #include <Inventor/fields/SoSFBool.h> 00053 #include <Inventor/fields/SoSFFloat.h> 00054 00055 class SoAction; 00056 class SoCallbackAction; 00057 class SoGLRenderAction; 00058 00059 class INVENTOR_API SoPolygonOffset : public SoNode 00060 { 00061 SO_NODE_HEADER(SoPolygonOffset); 00062 00063 typedef SoNode inherited; 00064 00065 protected: 00066 00067 virtual ~SoPolygonOffset(); 00068 00069 public: 00070 00071 enum Style { 00072 FILLED = SoPolygonOffsetElement::FILLED, 00073 LINES = SoPolygonOffsetElement::LINES, 00074 POINTS = SoPolygonOffsetElement::POINTS, 00075 ALL = SoPolygonOffsetElement::ALL 00076 }; 00077 00078 SoSFFloat factor; 00079 SoSFFloat units; 00080 SoSFBitMask styles; 00081 SoSFBool on; 00082 00083 SoPolygonOffset(); 00084 00085 SoEXTENDER public: 00086 00087 virtual void doAction(SoAction *action); 00088 virtual void callback(SoCallbackAction *action); 00089 virtual void GLRender(SoGLRenderAction *action); 00090 00091 SoINTERNAL public: 00092 00093 static void initClass() ; 00094 }; 00095 00096 #endif // _SO_POLYGON_OFFSET_