diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:00 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:00 -0600 |
commit | ec1fddcd0d6663ad273af85357f04abbc5689468 (patch) | |
tree | 6cb946ab8b4771868c6eee8d1aa5213d6ec246e2 /kpovmodeler/pmpovray35serialization.cpp | |
parent | c2637a0da6d9a1c8626ca39f8451ab3b7cda487a (diff) | |
download | tdegraphics-ec1fddcd0d6663ad273af85357f04abbc5689468.tar.gz tdegraphics-ec1fddcd0d6663ad273af85357f04abbc5689468.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.
Diffstat (limited to 'kpovmodeler/pmpovray35serialization.cpp')
-rw-r--r-- | kpovmodeler/pmpovray35serialization.cpp | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/kpovmodeler/pmpovray35serialization.cpp b/kpovmodeler/pmpovray35serialization.cpp index d567100e..a012c646 100644 --- a/kpovmodeler/pmpovray35serialization.cpp +++ b/kpovmodeler/pmpovray35serialization.cpp @@ -58,7 +58,7 @@ const double c_defaultIsoOpen = false; const int c_defaultIsoMaxTrace = 1; const bool c_defaultIsoAllIntersections = false; -void PMPov35SerIsoSurface( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerIsoSurface( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMIsoSurface* o = ( PMIsoSurface* ) object; TQString str; @@ -102,8 +102,8 @@ void PMPov35SerIsoSurface( const PMObject* object, const PMMetaObject* metaObjec } if( o->evaluate( ) ) { - str = TQString( "%1, %2, %3" ).arg( o->evaluateValue( 0 ) ) - .arg( o->evaluateValue( 1 ) ).arg( o->evaluateValue( 2 ) ); + str = TQString( "%1, %2, %3" ).tqarg( o->evaluateValue( 0 ) ) + .tqarg( o->evaluateValue( 1 ) ).tqarg( o->evaluateValue( 2 ) ); dev->writeLine( "evaluate " + str ); } if( o->allIntersections( ) ) @@ -116,14 +116,14 @@ void PMPov35SerIsoSurface( const PMObject* object, const PMMetaObject* metaObjec if( o->open( ) ) dev->writeLine( "open" ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } const double c_defaultLightTightness = 10; const int c_defaultLightAdaptive = 0; -void PMPov35SerLight( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerLight( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMLight* o = ( PMLight* ) object; @@ -145,10 +145,10 @@ void PMPov35SerLight( const PMObject* object, const PMMetaObject* metaObject, PM if( ( o->lightType( ) == PMLight::SpotLight ) || ( o->lightType( ) == PMLight::CylinderLight ) ) { - dev->writeLine( TQString( "radius %1" ).arg( o->radius( ) ) ); - dev->writeLine( TQString( "falloff %1" ).arg( o->falloff( ) ) ); + dev->writeLine( TQString( "radius %1" ).tqarg( o->radius( ) ) ); + dev->writeLine( TQString( "falloff %1" ).tqarg( o->falloff( ) ) ); if( o->tightness( ) != c_defaultLightTightness ) - dev->writeLine( TQString( "tightness %1" ).arg( o->tightness( ) ) ); + dev->writeLine( TQString( "tightness %1" ).tqarg( o->tightness( ) ) ); dev->writeLine( TQString( "point_at " ) + o->pointAt( ).serialize( ) ); } @@ -156,9 +156,9 @@ void PMPov35SerLight( const PMObject* object, const PMMetaObject* metaObject, PM { dev->writeLine( TQString( "area_light " ) + o->axis1( ).serialize( ) + TQString( ", " ) + o->axis2( ).serialize( ) - + TQString( ", %1, %2" ).arg( o->size1( ) ).arg( o->size2( ) ) ); + + TQString( ", %1, %2" ).tqarg( o->size1( ) ).tqarg( o->size2( ) ) ); if( o->adaptive( ) != c_defaultLightAdaptive ) - dev->writeLine( TQString( "adaptive %1" ).arg( o->adaptive( ) ) ); + dev->writeLine( TQString( "adaptive %1" ).tqarg( o->adaptive( ) ) ); if( o->jitter( ) ) dev->writeLine( TQString( "jitter" ) ); if ( o->areaType( ) == PMLight::Circular ) @@ -169,8 +169,8 @@ void PMPov35SerLight( const PMObject* object, const PMMetaObject* metaObject, PM if( o->fading( ) ) { - dev->writeLine( TQString( "fade_distance %1" ).arg( o->fadeDistance( ) ) ); - dev->writeLine( TQString( "fade_power %1" ).arg( o->fadePower( ) ) ); + dev->writeLine( TQString( "fade_distance %1" ).tqarg( o->fadeDistance( ) ) ); + dev->writeLine( TQString( "fade_power %1" ).tqarg( o->fadePower( ) ) ); } if( !o->mediaInteraction( ) ) @@ -178,15 +178,15 @@ void PMPov35SerLight( const PMObject* object, const PMMetaObject* metaObject, PM if( !o->mediaAttenuation( ) ) dev->writeLine( TQString( "media_attenuation off" ) ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } -void PMPov35SerProjectedThrough( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerProjectedThrough( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { dev->objectBegin( "projected_through" ); dev->writeName( object->name( ) ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } @@ -209,7 +209,7 @@ const double c_defaultGlobalSettingsMinimumReuse = 0.015; const int c_defaultGlobalSettingsNearestCount = 5; const int c_defaultGlobalSettingsRecursionLimit = 2; -void PMPov35SerGlobalSettings( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerGlobalSettings( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMGlobalSettings* o = ( PMGlobalSettings* ) object; @@ -310,7 +310,7 @@ void PMPov35SerGlobalSettings( const PMObject* object, const PMMetaObject* metaO dev->objectEnd( ); } else - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } @@ -559,14 +559,14 @@ void PMPov35SerPhotons( const PMObject* object, const PMMetaObject*, PMOutputDev dev->objectEnd( ); } -void PMPov35SerInterior( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerInterior( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMInterior* o = ( PMInterior* ) object; TQString str1; dev->objectBegin( "interior" ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( o->isIorEnabled( ) ) { @@ -601,14 +601,14 @@ void PMPov35SerInterior( const PMObject* object, const PMMetaObject* metaObject, dev->objectEnd( ); } -void PMPov35SerLightGroup( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerLightGroup( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMLightGroup* o = ( PMLightGroup* ) object; dev->objectBegin( "light_group" ); dev->writeName( object->name( ) ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if ( o->globalLights( ) ) dev->writeLine( "global_lights on" ); @@ -887,7 +887,7 @@ void PMPov35SerPattern( const PMObject* object, const PMMetaObject*, PMOutputDev const double c_defaultNormalAccuracy = 0.02; -void PMPov35SerNormal( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerNormal( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMNormal* o = ( PMNormal* ) object; @@ -907,7 +907,7 @@ void PMPov35SerNormal( const PMObject* object, const PMMetaObject* metaObject, P dev->writeLine( "uv_mapping" ); } - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( o->isBumpSizeEnabled( ) ) { @@ -925,10 +925,10 @@ void PMPov35SerNormal( const PMObject* object, const PMMetaObject* metaObject, P dev->objectEnd( ); } -void PMPov35SerInteriorTexture( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerInteriorTexture( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { dev->objectBegin( "interior_texture" ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } @@ -1057,7 +1057,7 @@ void PMPov35SerWarp( const PMObject* object, const PMMetaObject* , PMOutputDevic const double c_sphereSweepToleranceDefault = 1e-6; -void PMPov35SerSphereSweep( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerSphereSweep( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMSphereSweep* o = ( PMSphereSweep* ) object; @@ -1099,11 +1099,11 @@ void PMPov35SerSphereSweep( const PMObject* object, const PMMetaObject* metaObje dev->writeLine( "tolerance " + str1 ); } - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } -void PMPov35SerFinish( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerFinish( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMFinish* o = ( PMFinish* ) object; @@ -1111,7 +1111,7 @@ void PMPov35SerFinish( const PMObject* object, const PMMetaObject* metaObject, P dev->objectBegin( "finish" ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( o->isAmbientEnabled( ) ) dev->writeLine( "ambient " + o->ambientColor( ).serialize( ) ); @@ -1216,7 +1216,7 @@ void PMPov35SerFinish( const PMObject* object, const PMMetaObject* metaObject, P dev->objectEnd( ); } -void PMPov35SerMesh( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerMesh( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMMesh* o = ( PMMesh* ) object; @@ -1225,7 +1225,7 @@ void PMPov35SerMesh( const PMObject* object, const PMMetaObject* metaObject, PMO if( o->isInsideVectorEnabled( ) ) dev->writeLine( "inside_vector " + o->insideVector( ).serialize( ) ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( !o->hierarchy( ) ) dev->writeLine( "hierarchy off" ); @@ -1245,7 +1245,7 @@ const double c_defaultMediaAAThreshold = 0.1; const double c_defaultMediaScatteringEccentricity = 0; const double c_defaultMediaScatteringExtinction = 1.0; -void PMPov35SerMedia( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerMedia( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMMedia* o = ( PMMedia* ) object; @@ -1253,7 +1253,7 @@ void PMPov35SerMedia( const PMObject* object, const PMMetaObject* metaObject, PM TQString str2; dev->objectBegin( "media" ); - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( o->method( ) != c_defaultMediaMethod ) { @@ -1332,11 +1332,11 @@ void PMPov35SerMedia( const PMObject* object, const PMMetaObject* metaObject, PM dev->objectEnd( ); } -void PMPov35SerGraphicalObject( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerGraphicalObject( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMGraphicalObject* o = ( PMGraphicalObject* ) object; - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( o->noShadow( ) ) dev->writeLine( "no_shadow" ); @@ -1351,7 +1351,7 @@ void PMPov35SerGraphicalObject( const PMObject* object, const PMMetaObject* meta dev->writeLine( "double_illuminate" ); } -void PMPov35SerPigment( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerPigment( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMPigment* o = ( PMPigment* ) object; @@ -1366,12 +1366,12 @@ void PMPov35SerPigment( const PMObject* object, const PMMetaObject* metaObject, if ( o->uvMapping() ) dev->writeLine( "uv_mapping" ); } - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( bObject ) dev->objectEnd( ); } -void PMPov35SerTexture( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerTexture( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMTexture* o = ( PMTexture* ) object; @@ -1386,14 +1386,14 @@ void PMPov35SerTexture( const PMObject* object, const PMMetaObject* metaObject, if ( o->uvMapping() ) dev->writeLine( "uv_mapping" ); } - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); if( bObject ) dev->objectEnd( ); } const double c_defaultPatchFlatness = 0; -void PMPov35SerBicubicPatch( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerBicubicPatch( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMBicubicPatch* o = ( PMBicubicPatch* ) object; @@ -1433,11 +1433,11 @@ void PMPov35SerBicubicPatch( const PMObject* object, const PMMetaObject* metaObj dev->writeLine( line ); } - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } -void PMPov35SerTriangle( const PMObject* object, const PMMetaObject* metaObject, PMOutputDevice* dev ) +void PMPov35SerTriangle( const PMObject* object, const PMMetaObject* tqmetaObject, PMOutputDevice* dev ) { PMTriangle* o = ( PMTriangle* ) object; @@ -1466,6 +1466,6 @@ void PMPov35SerTriangle( const PMObject* object, const PMMetaObject* metaObject, " " + o->uvVector( 2 ).serialize( ) ); } - dev->callSerialization( object, metaObject->superClass( ) ); + dev->callSerialization( object, tqmetaObject->superClass( ) ); dev->objectEnd( ); } |