00001 #ifndef COIN_SOBOXHIGHLIGHTRENDERACTION_H
00002 #define COIN_SOBOXHIGHLIGHTRENDERACTION_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00061
00062
00063
00064
00065
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