#include <OSGColorBufferViewport.h>
Inheritance diagram for osg::ColorBufferViewport:

Public Types | |
| typedef ColorBufferViewportPtr | Ptr |
| enum | { RedFieldId = Inherited::NextFieldId, BlueFieldId = RedFieldId + 1, GreenFieldId = BlueFieldId + 1, AlphaFieldId = GreenFieldId + 1, NextFieldId = AlphaFieldId + 1 } |
Public Member Functions | |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
your_category | |
| *virtual void | draw (DrawAction *action) |
| virtual void | render (RenderActionBase *action) |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFBool * | getSFRed (void) |
| Get the ColorBufferViewport::_sfRed field. | |
| SFBool * | getSFBlue (void) |
| Get the ColorBufferViewport::_sfBlue field. | |
| SFBool * | getSFGreen (void) |
| Get the ColorBufferViewport::_sfGreen field. | |
| SFBool * | getSFAlpha (void) |
| Get the ColorBufferViewport::_sfAlpha field. | |
| bool & | getRed (void) |
| Get the value of the ColorBufferViewport::_sfRed field. | |
| const bool & | getRed (void) const |
| Get the value of the ColorBufferViewport::_sfRed field. | |
| bool & | getBlue (void) |
| Get the value of the ColorBufferViewport::_sfBlue field. | |
| const bool & | getBlue (void) const |
| Get the value of the ColorBufferViewport::_sfBlue field. | |
| bool & | getGreen (void) |
| Get the value of the ColorBufferViewport::_sfGreen field. | |
| const bool & | getGreen (void) const |
| Get the value of the ColorBufferViewport::_sfGreen field. | |
| bool & | getAlpha (void) |
| Get the value of the ColorBufferViewport::_sfAlpha field. | |
| const bool & | getAlpha (void) const |
| Get the value of the ColorBufferViewport::_sfAlpha field. | |
Field Set | |
| *void | setRed (const bool &value) |
| Set the value of the ColorBufferViewport::_sfRed field. | |
| void | setBlue (const bool &value) |
| Set the value of the ColorBufferViewport::_sfBlue field. | |
| void | setGreen (const bool &value) |
| Set the value of the ColorBufferViewport::_sfGreen field. | |
| void | setAlpha (const bool &value) |
| Set the value of the ColorBufferViewport::_sfAlpha field. | |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Copy | |
| *virtual FieldContainerPtr | shallowCopy (void) const |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Construction | |
| *static ColorBufferViewportPtr | create (void) |
| create a new instance of the class | |
| static ColorBufferViewportPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | RedFieldMask |
| static const osg::BitVector | BlueFieldMask |
| static const osg::BitVector | GreenFieldMask |
| static const osg::BitVector | AlphaFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const osg::BitVector | LeftFieldMask |
| static const osg::BitVector | RightFieldMask |
| static const osg::BitVector | BottomFieldMask |
| static const osg::BitVector | TopFieldMask |
| static const osg::BitVector | ParentFieldMask |
| static const osg::BitVector | CameraFieldMask |
| static const osg::BitVector | RootFieldMask |
| static const osg::BitVector | BackgroundFieldMask |
| static const osg::BitVector | ForegroundsFieldMask |
| static const osg::BitVector | TravMaskFieldMask |
| static const osg::BitVector | DrawTimeFieldMask |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | ColorBufferViewport (void) |
| ColorBufferViewport (const ColorBufferViewport &source) | |
Destructors | |
| *virtual | ~ColorBufferViewport (void) |
Sync | |
| *void | executeSyncImpl (ColorBufferViewportBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Protected Attributes | |
Fields | |
| *SFBool | _sfRed |
| SFBool | _sfBlue |
| SFBool | _sfGreen |
| SFBool | _sfAlpha |
Private Types | |
| typedef ColorBufferViewportBase | Inherited |
Private Member Functions | |
| void | operator= (const ColorBufferViewport &source) |
Static Private Member Functions | |
| static void | initMethod (void) |
Friends | |
| class | FieldContainer |
| class | ColorBufferViewportBase |
The color channels used are defined by the _sfRed, _sfGreen, _sfBlue and _sfAlpha Fields.
Definition at line 57 of file OSGColorBufferViewport.h.
|
|
Reimplemented from osg::ColorBufferViewportBase. Definition at line 61 of file OSGColorBufferViewport.h. |
|
|
Reimplemented from osg::ViewportBase. Definition at line 93 of file OSGColorBufferViewportBase.h. |
|
|
Reimplemented from osg::ViewportBase. Definition at line 95 of file OSGColorBufferViewportBase.h. 00096 { 00097 RedFieldId = Inherited::NextFieldId, 00098 BlueFieldId = RedFieldId + 1, 00099 GreenFieldId = BlueFieldId + 1, 00100 AlphaFieldId = GreenFieldId + 1, 00101 NextFieldId = AlphaFieldId + 1 00102 };
|
|
|
Definition at line 66 of file OSGColorBufferViewport.cpp. 00066 : 00067 Inherited() 00068 { 00069 }
|
|
|
Definition at line 71 of file OSGColorBufferViewport.cpp. 00071 : 00072 Inherited(source) 00073 { 00074 }
|
|
|
Definition at line 76 of file OSGColorBufferViewport.cpp.
|
|
||||||||||||
|
Reimplemented from osg::Viewport. Definition at line 86 of file OSGColorBufferViewport.cpp. References osg::Viewport::changed(). 00087 { 00088 Inherited::changed(whichField, origin); 00089 }
|
|
||||||||||||
|
Reimplemented from osg::Viewport. Definition at line 91 of file OSGColorBufferViewport.cpp. References SLOG. 00093 { 00094 SLOG << "Dump ColorBufferViewport NI" << std::endl; 00095 }
|
|
|
Draw the viewport. Restrict the OpenGL rendering to the given part of the window, clear it, draw it using the given DrawAction and add the Foregrounds. The _sfCamera, _sfBackground and _sfRoot Fields need to be valid, otherwise drawing will fail. Dev: Activates scissoring only if the viewport doesn't fill the wholw window, as it significantly slows down some OpenGL implementations. Reimplemented from osg::Viewport. Definition at line 98 of file OSGColorBufferViewport.cpp. References osg::Viewport::draw(), osg::ColorBufferViewportBase::getAlpha(), osg::ColorBufferViewportBase::getBlue(), osg::ColorBufferViewportBase::getGreen(), and osg::ColorBufferViewportBase::getRed(). 00099 { 00100 glColorMask(getRed(), getGreen(), getBlue(), getAlpha()); 00101 Inherited::draw(action); 00102 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 00103 }
|
|
|
Draw the viewport. Restrict the OpenGL rendering to the given part of the window, clear it, draw it using the given DrawAction and add the Foregrounds. The _sfCamera, _sfBackground and _sfRoot Fields need to be valid, otherwise drawing will fail. Dev: Activates scissoring only if the viewport doesn't fill the wholw window, as it significantly slows down some OpenGL implementations. Reimplemented from osg::Viewport. Definition at line 106 of file OSGColorBufferViewport.cpp. References osg::ColorBufferViewportBase::getAlpha(), osg::ColorBufferViewportBase::getBlue(), osg::ColorBufferViewportBase::getGreen(), osg::ColorBufferViewportBase::getRed(), and osg::Viewport::render(). 00107 { 00108 glColorMask(getRed(), getGreen(), getBlue(), getAlpha()); 00109 Inherited::render(action); 00110 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 00111 }
|
|
|
Reimplemented from osg::Viewport. Definition at line 82 of file OSGColorBufferViewport.cpp.
|
|
|
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 58 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_type. Referenced by osg::ColorBufferViewportBase::create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 65 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 143 of file OSGColorBufferViewportBase.cpp. References osg::ColorBufferViewportBase::_type. 00144 { 00145 return _type; 00146 }
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 148 of file OSGColorBufferViewportBase.cpp. References osg::ColorBufferViewportBase::_type. 00149 { 00150 return _type; 00151 }
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 163 of file OSGColorBufferViewportBase.cpp. 00164 { 00165 return sizeof(ColorBufferViewport); 00166 }
|
|
|
Definition at line 101 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfRed. 00102 { 00103 return &_sfRed; 00104 }
|
|
|
Definition at line 108 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfBlue. 00109 { 00110 return &_sfBlue; 00111 }
|
|
|
Definition at line 115 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfGreen. 00116 { 00117 return &_sfGreen; 00118 }
|
|
|
Definition at line 122 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfAlpha. 00123 { 00124 return &_sfAlpha; 00125 }
|
|
|
Definition at line 130 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfRed, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by draw(), and render(). 00131 { 00132 return _sfRed.getValue(); 00133 }
|
|
|
Definition at line 137 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfRed, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00138 { 00139 return _sfRed.getValue(); 00140 }
|
|
|
Definition at line 151 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfBlue, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by draw(), and render(). 00152 { 00153 return _sfBlue.getValue(); 00154 }
|
|
|
Definition at line 158 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfBlue, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00159 { 00160 return _sfBlue.getValue(); 00161 }
|
|
|
Definition at line 172 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfGreen, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by draw(), and render(). 00173 { 00174 return _sfGreen.getValue(); 00175 }
|
|
|
Definition at line 179 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfGreen, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00180 { 00181 return _sfGreen.getValue(); 00182 }
|
|
|
Definition at line 193 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfAlpha, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by draw(), and render(). 00194 { 00195 return _sfAlpha.getValue(); 00196 }
|
|
|
Definition at line 200 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfAlpha, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00201 { 00202 return _sfAlpha.getValue(); 00203 }
|
|
|
Definition at line 144 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfRed, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 165 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfBlue, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 186 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfGreen, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 207 of file OSGColorBufferViewportBase.inl. References osg::ColorBufferViewportBase::_sfAlpha, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
||||||||||||
|
||||||||||||
|
|
Reimplemented from osg::ViewportBase. Definition at line 72 of file OSGColorBufferViewportBase.inl. References osg::AttachmentContainerPtr::dcast(), osg::ColorBufferViewportBase::getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and osg::ColorBufferViewportBase::shallowCopy(). 00073 { 00074 ColorBufferViewportPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ColorBufferViewportPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 87 of file OSGColorBufferViewportBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 ColorBufferViewportPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::ViewportBase. Definition at line 154 of file OSGColorBufferViewportBase.cpp. References osg::FieldContainer::newPtr(). Referenced by osg::ColorBufferViewportBase::create(). 00155 { 00156 ColorBufferViewportPtr returnValue; 00157 00158 newPtr(returnValue, dynamic_cast<const ColorBufferViewport *>(this)); 00159 00160 return returnValue; 00161 }
|
|
||||||||||||
|
||||||||||||