* Appends reference to other image.
* \param theReferenced the image referenced by this
*/
- void AppendReference( HYDROData_Image theReferenced ) [void (Handle_HYDROData_Image)];
+ void AppendReference( HYDROData_Object theReferenced ) [void (Handle_HYDROData_Object)];
%MethodCode
- Handle(HYDROData_Image) anImage =
- Handle(HYDROData_Image)::DownCast( createHandle( a0 ) );
- if ( !anImage.IsNull() )
+ Handle(HYDROData_Object) aRefObj = createHandle( a0 );
+ if ( !aRefObj.IsNull() )
{
Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Image::AppendReference( anImage ) :
- sipCpp->AppendReference( anImage );
+ sipSelfWasArg ? sipCpp->HYDROData_Image::AppendReference( aRefObj ) :
+ sipCpp->AppendReference( aRefObj );
Py_END_ALLOW_THREADS
}
* \param theIndex number of reference [0; NbReference)
* \returns the referenced image, or Null if index is invalid
*/
- HYDROData_Image Reference( const int theIndex ) const [Handle_HYDROData_Image (const int)];
+ HYDROData_Object Reference( const int theIndex ) const [Handle_HYDROData_Object (const int)];
%MethodCode
- Handle(HYDROData_Image) anImage;
+ Handle(HYDROData_Object) aRefObj;
Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Image::Reference( a0 ) :
- sipCpp->Reference( a0 );
+ aRefObj = sipSelfWasArg ? sipCpp->HYDROData_Image::Reference( a0 ) :
+ sipCpp->Reference( a0 );
Py_END_ALLOW_THREADS
- sipRes = dynamic_cast<HYDROData_Image*>( createPointer( anImage ) );
+ sipRes = createPointer( aRefObj );
%End
* \param theIndex number of reference [0; NbReference]
* \param theReferenced the image referenced by this
*/
- void ChangeReference( const int theIndex, HYDROData_Image theReferenced ) [void (const int, Handle_HYDROData_Image)];
+ void ChangeReference( const int theIndex, HYDROData_Object theReferenced ) [void (const int, Handle_HYDROData_Object)];
%MethodCode
- Handle(HYDROData_Image) anImage =
- Handle(HYDROData_Image)::DownCast( createHandle( a1 ) );
- if ( !anImage.IsNull() )
+ Handle(HYDROData_Object) aRefObj = createHandle( a1 );
+ if ( !aRefObj.IsNull() )
{
Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Image::ChangeReference( a0, anImage ) :
- sipCpp->ChangeReference( a0, anImage );
+ sipSelfWasArg ? sipCpp->HYDROData_Image::ChangeReference( a0, aRefObj ) :
+ sipCpp->ChangeReference( a0, aRefObj );
Py_END_ALLOW_THREADS
}