- Timestamp:
- 10/21/10 16:34:45 (19 months ago)
- Location:
- trunk/avango-osg
- Files:
-
- 4 added
- 7 edited
-
include/avango/osg/LineWidth.h (added)
-
include/avango/osg/SConscript (modified) (1 diff)
-
include/avango/osg/StateSet.h (modified) (3 diffs)
-
python/SConscript (modified) (1 diff)
-
python/avango/osg/OSGLineWidth.cpp (added)
-
python/avango/osg/OSGLineWidth.h (added)
-
python/avango/osg/_osg.cpp (modified) (2 diffs)
-
src/avango/osg/Init.cpp (modified) (2 diffs)
-
src/avango/osg/LineWidth.cpp (added)
-
src/avango/osg/SConscript (modified) (1 diff)
-
src/avango/osg/StateSet.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-osg/include/avango/osg/SConscript
r453 r530 58 58 LayerGroup.h 59 59 LineSegmentIntersector.h 60 LineWidth.h 60 61 LoadFile.h 61 62 LoadImage.h -
trunk/avango-osg/include/avango/osg/StateSet.h
r298 r530 43 43 #include <avango/osg/BlendFunc.h> 44 44 #include <avango/osg/Texture.h> 45 #include <avango/osg/LineWidth.h> 45 46 46 47 namespace av … … 82 83 SFInt NormalizeMode; 83 84 SFInt DepthTestMode; 85 SFLineWidth LineWidth; 84 86 85 87 SFTexture Texture0; … … 141 143 virtual void setUniformsCB(const av::osg::MFUniform::SetValueEvent& event); 142 144 145 virtual void getLineWidthCB(const av::osg::SFLineWidth::GetValueEvent& event); 146 virtual void setLineWidthCB(const av::osg::SFLineWidth::SetValueEvent& event); 147 143 148 private: 144 149 -
trunk/avango-osg/python/SConscript
r453 r530 75 75 avango/osg/OSGLayerGeode.cpp 76 76 avango/osg/OSGLayerGroup.cpp 77 avango/osg/OSGLineWidth.cpp 77 78 avango/osg/OSGSwitch.cpp 78 79 avango/osg/OSGTransform.cpp -
trunk/avango-osg/python/avango/osg/_osg.cpp
r514 r530 63 63 #include "OSGLightSource.h" 64 64 #include "OSGLineSegmentIntersector.h" 65 #include "OSGLineWidth.h" 65 66 #include "OSGLoadFile.h" 66 67 #include "OSGLoadImage.h" … … 176 177 init_OSGLight(); 177 178 init_OSGLightSource(); 179 init_OSGLineWidth(); 178 180 init_OSGPolygonOffset(); 179 181 init_OSGQuad(); -
trunk/avango-osg/src/avango/osg/Init.cpp
r453 r530 48 48 #include <avango/osg/Light.h> 49 49 #include <avango/osg/LightSource.h> 50 #include <avango/osg/LineWidth.h> 50 51 #include <avango/osg/Geode.h> 51 52 #include <avango/osg/Geometry.h> … … 115 116 av::osg::Light::initClass(); 116 117 av::osg::LightSource::initClass(); 118 av::osg::LineWidth::initClass(); 117 119 av::osg::Geode::initClass(); 118 120 av::osg::Geometry::initClass(); -
trunk/avango-osg/src/avango/osg/SConscript
r453 r530 51 51 Light.cpp 52 52 LightSource.cpp 53 LineWidth.cpp 53 54 Geode.cpp 54 55 Geometry.cpp -
trunk/avango-osg/src/avango/osg/StateSet.cpp
r298 r530 115 115 boost::bind(&StateSet::getUniformsCB, this, _1), 116 116 boost::bind(&StateSet::setUniformsCB, this, _1)); 117 118 AV_FC_ADD_ADAPTOR_FIELD(LineWidth, 119 boost::bind(&StateSet::getLineWidthCB, this, _1), 120 boost::bind(&StateSet::setLineWidthCB, this, _1)); 121 117 122 } 118 123 … … 439 444 } 440 445 446 /* virtual */ void 447 av::osg::StateSet::getLineWidthCB(const av::osg::SFLineWidth::GetValueEvent& event) 448 { 449 *(event.getValuePtr()) = av::osg::get_from_osg_object<av::osg::LineWidth>(mOsgStateSet->getAttribute(::osg::LineWidth::LINEWIDTH)); 450 } 451 452 /* virtual */ void 453 av::osg::StateSet::setLineWidthCB(const av::osg::SFLineWidth::SetValueEvent& event) 454 { 455 ::osg::LineWidth *osg_linewidth = 456 (event.getValue().isValid() ? event.getValue()->getOsgLineWidth() : 0); 457 if (osg_linewidth != 0) 458 mOsgStateSet->setAttribute(osg_linewidth,::osg::StateAttribute::ON); 459 else 460 mOsgStateSet->removeAttribute(::osg::StateAttribute::LINEWIDTH); 461 } 462
Note: See TracChangeset
for help on using the changeset viewer.
