![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_SOLINEHIGHLIGHTRENDERACTION_H 00002 #define COIN_SOLINEHIGHLIGHTRENDERACTION_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) by Kongsberg Oil & Gas Technologies. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Kongsberg Oil & Gas Technologies 00018 * about acquiring a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/actions/SoGLRenderAction.h> 00028 #include <Inventor/SbColor.h> 00029 00030 class SoLineHighlightRenderActionP; 00031 00032 class COIN_DLL_API SoLineHighlightRenderAction : public SoGLRenderAction { 00033 typedef SoGLRenderAction inherited; 00034 00035 SO_ACTION_HEADER(SoLineHighlightRenderAction); 00036 00037 public: 00038 static void initClass(void); 00039 00040 SoLineHighlightRenderAction(void); 00041 SoLineHighlightRenderAction(const SbViewportRegion & viewportregion); 00042 virtual ~SoLineHighlightRenderAction(void); 00043 00044 virtual void apply(SoNode * node); 00045 virtual void apply(SoPath * path); 00046 virtual void apply(const SoPathList & pathlist, SbBool obeysrules = FALSE); 00047 void setVisible(const SbBool visible); 00048 SbBool isVisible(void) const; 00049 void setColor(const SbColor & color); 00050 const SbColor & getColor(void); 00051 void setLinePattern(uint16_t pattern); 00052 uint16_t getLinePattern(void) const; 00053 void setLineWidth(const float width); 00054 float getLineWidth(void) const; 00055 00056 protected: 00057 SbBool hlVisible; 00058 // Some protected members are missing compared to OIV here. 00059 // I doubt that anyone will use them though, since it looked 00060 // like they should have been private. We chose to implement this 00061 // action in a different manner. But, if you need the protected members 00062 // provided by OIV here, contact us any we'll consider reimplementing 00063 // the action to conform more to OIV. pederb, 20000222 00064 00065 private: 00066 SbPimplPtr<SoLineHighlightRenderActionP> pimpl; 00067 friend class SoLineHighlightRenderActionP; 00068 00069 // NOT IMPLEMENTED: 00070 SoLineHighlightRenderAction(const SoLineHighlightRenderAction & rhs); 00071 SoLineHighlightRenderAction & operator = (const SoLineHighlightRenderAction & rhs); 00072 }; // SoLineHighlightRenderAction 00073 00074 #endif // !COIN_SOLINEHIGHLIGHTRENDERACTION_H
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.5.6.