Code Search for Developers
 
 
  

IReflectedValueLink.h from osgDesigner at Krugle


Show IReflectedValueLink.h syntax highlighted

#ifndef __IREFLECTEDVALUELINK_H__
#define __IREFLECTEDVALUELINK_H__

#include <string>
#include <iostream>
#include <osgIntrospection/PropertyInfo>
#include <osg/Referenced>

#include <osgIntrospectionToolKit/Export.h>

namespace osgIntrospectionToolKit
{   
    class OSGINTROSPECTIONTOOLKIT_EXPORT IReflectedValueLink: public osg::Referenced
    {
        public:
            IReflectedValueLink(const osgIntrospection::PropertyInfo& pi)
            :   osg::Referenced(),
                _pi(pi)
            {}
            
            
            virtual void                                    getName(std::string& name) const;
            virtual bool                                    getValue(const osgIntrospection::Value& parent, osgIntrospection::Value& ret) const;
            virtual bool                                    setValue(osgIntrospection::Value& parent, const osgIntrospection::Value& value) const;
            virtual bool                                    removeValue(osgIntrospection::Value& parent) const;
            virtual bool                                    isEqual(const IReflectedValueLink* rvl) const;
            virtual void                                    printInfo() const;
            virtual std::string                             getInfo() const;        
            
            const osgIntrospection::PropertyInfo&           propertyInfo() const;
            bool                                            canSet() const;
            bool                                            canAdd() const;
            bool                                            canRemove() const;
            
                        
        protected:
            virtual ~IReflectedValueLink()
            {}
            
            const osgIntrospection::PropertyInfo&       _pi;
    };
    

    inline const osgIntrospection::PropertyInfo&    IReflectedValueLink::propertyInfo() const
    { return (_pi);}
    inline bool                                     IReflectedValueLink::canSet() const
    { return (_pi.canSet()); }
    inline bool                                     IReflectedValueLink::canRemove() const
    { return (_pi.canRemove()); }
    inline bool                                     IReflectedValueLink::canAdd() const
    { return (_pi.canAdd()); }
}

#endif // ** __IREFLECTEDVALUELINK_H__ ** //




See more files for this project here

osgDesigner

osgDesigner is a graphical tool used to modify an OpenSceneGraph (OSG) scene using the osgIntrospection framework. OpenSceneGraph developpers will be able to extend osgDesigner at need using (editor | render | osgIntrospection wrapper) plugin system.

Project homepage: http://sourceforge.net/projects/osgdesigner
Programming language(s): C++,Shell Script
License: other

  CArrayItemLink.h
  CIndexedItemLink.h
  CPropertyExtractor.h
  CReflectedInstance.h
  CReflectedPointer.h
  CReflectedRefPointer.h
  CReflectedValueLinkExtractor.h
  CValueTree.h
  CValueTreeFunctor.h
  CValueTreeModifier.h
  CommonStdType.h
  ControlList.h
  ExceptionUtility.h
  Export.h
  IGraph.h
  IReflectedValue.h
  IReflectedValueLink.h
  SMemoryManager.h
  STypeGraph.h
  SWrapperManager.h
  signalslib.hpp