00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef OST_GFX_CUSTOM_RENDER_OPTIONS_HH
00024 #define OST_GFX_CUSTOM_RENDER_OPTIONS_HH
00025
00026 #include <boost/shared_ptr.hpp>
00027 #include <ost/base.hh>
00028
00029 #include <ost/gfx/module_config.hh>
00030 #include <ost/gfx/render_options/render_options.hh>
00031
00032 namespace ost {namespace gfx {
00033
00034 class DLLEXPORT_OST_GFX CustomRenderOptions: public ost::gfx::RenderOptions {
00035 public:
00036 CustomRenderOptions();
00037
00038 virtual RenderMode::Type GetRenderMode();
00039
00040 virtual bool CanApplyRenderOptions(RenderOptionsPtr render_options);
00041 virtual void ApplyRenderOptions(RenderOptionsPtr render_options);
00042
00043 virtual void SetSphereDetail(uint sphere_detail);
00044 virtual uint GetSphereDetail();
00045
00046 virtual void SetArcDetail(uint arc_detail);
00047 virtual uint GetArcDetail();
00048
00049 void SetSphereRad(float r);
00050 float GetSphereRad() const;
00051
00052 void SetBondRad(float r);
00053 float GetBondRad() const;
00054
00055 virtual ~CustomRenderOptions();
00056
00057 private:
00058 uint sphere_detail_;
00059 uint arc_detail_;
00060 float sphere_rad_;
00061 float bond_rad_;
00062
00063 };
00064
00065 typedef boost::shared_ptr<CustomRenderOptions> CustomRenderOptionsPtr;
00066
00067 }}
00068
00069 #endif