![]() |
http://www.sim.no http://www.coin3d.org |
00001 #ifndef COIN_SOBOXHIGHLIGHTRENDERACTION_H 00002 #define COIN_SOBOXHIGHLIGHTRENDERACTION_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved. 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 Systems in Motion about acquiring 00018 * a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, 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 SoBoxHighlightRenderActionP; 00031 00032 class COIN_DLL_API SoBoxHighlightRenderAction : public SoGLRenderAction { 00033 typedef SoGLRenderAction inherited; 00034 00035 SO_ACTION_HEADER(SoBoxHighlightRenderAction); 00036 00037 public: 00038 SoBoxHighlightRenderAction(void); 00039 SoBoxHighlightRenderAction(const SbViewportRegion & viewportregion); 00040 virtual ~SoBoxHighlightRenderAction(); 00041 00042 static void initClass(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(unsigned short pattern); 00052 unsigned short getLinePattern(void) const; 00053 void setLineWidth(const float width); 00054 float getLineWidth(void) const; 00055 00056 protected: 00057 00058 SbBool hlVisible; 00059 00060 // Some protected members are missing compared to OIV here. 00061 // I doubt that anyone will use them though, since it looked 00062 // like they should have been private. We chose to implement this 00063 // action in a different manner. But, if you need the protected members 00064 // provided by OIV here, contact us any we'll consider reimplementing 00065 // the action to conform more to OIV. pederb, 20000222 00066 00067 private: 00068 void init(void); 00069 void drawBoxes(SoPath * pathtothis, const SoPathList * pathlist); 00070 00071 SoBoxHighlightRenderActionP * pimpl; 00072 }; 00073 00074 #endif // !COIN_SOBOXHIGHLIGHTRENDERACTION_H
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Feb 28 2011 10:11:53 for Coin by Doxygen. 1.7.3