#include <OSGMatrixCameraDecorator.h>
Inheritance diagram for osg::MatrixCameraDecorator:

The osg::MatrixCameraDecorator for madifying the camera matrices by matrices, see Additional Matrices for a description.
The matrices to use are defined by the _sf Fields. The size of the full image is defined by the _sfFullWidth and _sfFullHeight Fields.
Definition at line 55 of file OSGMatrixCameraDecorator.h.
|
|
Reimplemented from osg::MatrixCameraDecoratorBase. Definition at line 59 of file OSGMatrixCameraDecorator.h. |
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 95 of file OSGMatrixCameraDecoratorBase.h. |
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 97 of file OSGMatrixCameraDecoratorBase.h. 00098 { 00099 PreViewingFieldId = Inherited::NextFieldId, 00100 PostViewingFieldId = PreViewingFieldId + 1, 00101 PreProjectionTranslationFieldId = PostViewingFieldId + 1, 00102 PostProjectionTranslationFieldId = PreProjectionTranslationFieldId + 1, 00103 PreProjectionFieldId = PostProjectionTranslationFieldId + 1, 00104 PostProjectionFieldId = PreProjectionFieldId + 1, 00105 NextFieldId = PostProjectionFieldId + 1 00106 };
|
|
|
Definition at line 91 of file OSGMatrixCameraDecorator.cpp. 00091 : 00092 Inherited() 00093 { 00094 }
|
|
|
Definition at line 96 of file OSGMatrixCameraDecorator.cpp. 00096 : 00097 Inherited(source) 00098 { 00099 }
|
|
|
Definition at line 101 of file OSGMatrixCameraDecorator.cpp.
|
|
||||||||||||
|
Reimplemented from osg::CameraDecorator. Definition at line 107 of file OSGMatrixCameraDecorator.cpp. References osg::CameraDecorator::changed(). 00108 { 00109 Inherited::changed(whichField, origin); 00110 }
|
|
||||||||||||||||
|
Get/calculate the projection matrix for this camera. Reimplemented from osg::CameraDecorator. Definition at line 113 of file OSGMatrixCameraDecorator.cpp. References osg::CameraDecoratorBase::getDecoratee(), osg::MatrixCameraDecoratorBase::getPostProjection(), osg::MatrixCameraDecoratorBase::getPreProjection(), osg::TransformationMatrix< ValueTypeT >::mult(), and osg::TransformationMatrix< ValueTypeT >::multLeft(). 00115 { 00116 getDecoratee()->getProjection(result, width, height); 00117 00118 result.multLeft(getPostProjection()); 00119 result.mult(getPreProjection()); 00120 }
|
|
||||||||||||||||
|
Get/calculate the projection translation matrix for this camera. The default is identity. Reimplemented from osg::CameraDecorator. Definition at line 122 of file OSGMatrixCameraDecorator.cpp. References osg::CameraDecoratorBase::getDecoratee(), osg::MatrixCameraDecoratorBase::getPostProjectionTranslation(), osg::MatrixCameraDecoratorBase::getPreProjectionTranslation(), osg::TransformationMatrix< ValueTypeT >::mult(), and osg::TransformationMatrix< ValueTypeT >::multLeft(). 00124 { 00125 getDecoratee()->getProjectionTranslation(result, width, height); 00126 00127 result.multLeft(getPostProjectionTranslation()); 00128 result.mult(getPreProjectionTranslation()); 00129 }
|
|
||||||||||||||||
|
Get/calculate the viewing matrix for this camera. This is the inverse of the beacon's toWorld transformation. Reimplemented from osg::CameraDecorator. Definition at line 131 of file OSGMatrixCameraDecorator.cpp. References osg::CameraDecoratorBase::getDecoratee(), osg::MatrixCameraDecoratorBase::getPostViewing(), osg::MatrixCameraDecoratorBase::getPreViewing(), osg::TransformationMatrix< ValueTypeT >::mult(), and osg::TransformationMatrix< ValueTypeT >::multLeft(). 00133 { 00134 getDecoratee()->getViewing(result, width, height); 00135 00136 result.multLeft(getPostViewing()); 00137 result.mult(getPreViewing()); 00138 }
|
|
||||||||||||
|
Reimplemented from osg::CameraDecorator. Definition at line 140 of file OSGMatrixCameraDecorator.cpp. References SLOG. 00142 { 00143 SLOG << "Dump MatrixCameraDecorator NI" << std::endl; 00144 }
|
|
|
Reimplemented from osg::CameraDecorator. Definition at line 76 of file OSGMatrixCameraDecorator.cpp.
|
|
|
|
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 58 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_type. Referenced by osg::MatrixCameraDecoratorBase::create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 65 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 161 of file OSGMatrixCameraDecoratorBase.cpp. References osg::MatrixCameraDecoratorBase::_type. 00162 { 00163 return _type; 00164 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 166 of file OSGMatrixCameraDecoratorBase.cpp. References osg::MatrixCameraDecoratorBase::_type. 00167 { 00168 return _type; 00169 }
|
|
|
Reimplemented from osg::CameraDecoratorBase. Definition at line 181 of file OSGMatrixCameraDecoratorBase.cpp. 00182 { 00183 return sizeof(MatrixCameraDecorator); 00184 }
|
|
|
Definition at line 101 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreViewing. 00102 { 00103 return &_sfPreViewing; 00104 }
|
|
|
Definition at line 108 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostViewing. 00109 { 00110 return &_sfPostViewing; 00111 }
|
|
|
Definition at line 115 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjectionTranslation. 00116 { 00117 return &_sfPreProjectionTranslation; 00118 }
|
|
|
Definition at line 122 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjectionTranslation. 00123 { 00124 return &_sfPostProjectionTranslation; 00125 }
|
|
|
Definition at line 129 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjection. 00130 { 00131 return &_sfPreProjection; 00132 }
|
|
|
Definition at line 136 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjection. 00137 { 00138 return &_sfPostProjection; 00139 }
|
|
|
Definition at line 144 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreViewing, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by getViewing(). 00145 { 00146 return _sfPreViewing.getValue(); 00147 }
|
|
|
Definition at line 151 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreViewing, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00152 { 00153 return _sfPreViewing.getValue(); 00154 }
|
|
|
Definition at line 165 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostViewing, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by getViewing(). 00166 { 00167 return _sfPostViewing.getValue(); 00168 }
|
|
|
Definition at line 172 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostViewing, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00173 { 00174 return _sfPostViewing.getValue(); 00175 }
|
|
|
Definition at line 186 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjectionTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by getProjectionTranslation(). 00187 { 00188 return _sfPreProjectionTranslation.getValue(); 00189 }
|
|
|
Definition at line 193 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjectionTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00194 { 00195 return _sfPreProjectionTranslation.getValue(); 00196 }
|
|
|
Definition at line 207 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjectionTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by getProjectionTranslation(). 00208 { 00209 return _sfPostProjectionTranslation.getValue(); 00210 }
|
|
|
Definition at line 214 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjectionTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00215 { 00216 return _sfPostProjectionTranslation.getValue(); 00217 }
|
|
|
Definition at line 228 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjection, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by getProjection(). 00229 { 00230 return _sfPreProjection.getValue(); 00231 }
|
|
|
Definition at line 235 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjection, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00236 { 00237 return _sfPreProjection.getValue(); 00238 }
|
|
|
Definition at line 249 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjection, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by getProjection(). 00250 { 00251 return _sfPostProjection.getValue(); 00252 }
|
|
|
Definition at line 256 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjection, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00257 { 00258 return _sfPostProjection.getValue(); 00259 }
|
|
|
Definition at line 158 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreViewing, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00159 { 00160 _sfPreViewing.setValue(value); 00161 }
|
|
|
Definition at line 179 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostViewing, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00180 { 00181 _sfPostViewing.setValue(value); 00182 }
|
|
|
Definition at line 200 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjectionTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00201 { 00202 _sfPreProjectionTranslation.setValue(value); 00203 }
|
|
|
Definition at line 221 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjectionTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00222 { 00223 _sfPostProjectionTranslation.setValue(value); 00224 }
|
|
|
Definition at line 242 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPreProjection, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00243 { 00244 _sfPreProjection.setValue(value); 00245 }
|
|
|
Definition at line 263 of file OSGMatrixCameraDecoratorBase.inl. References osg::MatrixCameraDecoratorBase::_sfPostProjection, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00264 { 00265 _sfPostProjection.setValue(value); 00266 }
|
|