Fix 3D view format specifiers for all platforms (hopefully).

This commit is contained in:
Wayne Stambaugh 2021-07-27 21:06:24 -04:00
parent 3a5d49f7b2
commit 11becc5a68
18 changed files with 54 additions and 54 deletions

View File

@ -528,7 +528,7 @@ bool WRL1BASE::readShapeHints( WRLPROC& proc, WRL1NODE* aParent, WRL1NODE** aNod
SGNODE* WRL1BASE::TranslateToSG( SGNODE* aParent, WRL1STATUS* /*sp*/ )
{
wxLogTrace( traceVrmlPlugin, wxT( " * [INFO] Translating VRML1 Base with %lu items." ),
wxLogTrace( traceVrmlPlugin, wxT( " * [INFO] Translating VRML1 Base with %zu items." ),
m_Items.size() );
if( m_Items.empty() )

View File

@ -54,8 +54,8 @@ WRL1FACESET::WRL1FACESET( NAMEREGISTER* aDictionary, WRL1NODE* aParent ) :
WRL1FACESET::~WRL1FACESET()
{
wxLogTrace( traceVrmlPlugin, wxT( " * [INFO] Destroying IndexedFaceSet with %lu children, "
"%lu references, and %lu back pointers." ),
wxLogTrace( traceVrmlPlugin, wxT( " * [INFO] Destroying IndexedFaceSet with %zu children, "
"%zu references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -243,7 +243,7 @@ SGNODE* WRL1FACESET::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
if( coordsize < 3 || vsize < 3 )
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] bad model: coordsize = %lu, indexsize = %lu" ),
wxT( " * [INFO] bad model: coordsize = %zu, indexsize = %zu" ),
coordsize, vsize );
return nullptr;

View File

@ -57,7 +57,7 @@ WRL1GROUP::WRL1GROUP( NAMEREGISTER* aDictionary, WRL1NODE* aParent ) :
WRL1GROUP::~WRL1GROUP()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Group with %lu children, %lu references, and %lu "
wxT( " * [INFO] Destroying Group with %zu children, %zu references, and %zu "
"back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -130,8 +130,8 @@ SGNODE* WRL1GROUP::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
wxCHECK_MSG( m_Parent, nullptr, wxT( "Group has no parent." ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Group with %lu children, %lu references, %lu back "
"pointers, and %lu items." ),
wxT( " * [INFO] Translating Group with %zu children, %zu references, %zu back "
"pointers, and %zu items." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size(), m_Items.size() );
if( WRL1NODES::WRL1_BASE != m_Parent->GetNodeType() )

View File

@ -51,7 +51,7 @@ WRL1SEPARATOR::WRL1SEPARATOR( NAMEREGISTER* aDictionary, WRL1NODE* aParent ) :
WRL1SEPARATOR::~WRL1SEPARATOR()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Separator with %lu children %lu references, and %lu "
wxT( " * [INFO] Destroying Separator with %zu children %zu references, and %zu "
"back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -115,8 +115,8 @@ SGNODE* WRL1SEPARATOR::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
wxCHECK_MSG( m_Parent, nullptr, wxT( "Separator has no parent." ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Separator with %lu children, %lu references, and "
"%lu back pointers (%lu total items)." ),
wxT( " * [INFO] Translating Separator with %zu children, %zu references, and "
"%zu back pointers (%zu total items)." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size(), m_Items.size() );
if( sp != nullptr )

View File

@ -54,8 +54,8 @@ WRL1SWITCH::WRL1SWITCH( NAMEREGISTER* aDictionary, WRL1NODE* aParent ) :
WRL1SWITCH::~WRL1SWITCH()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Switch node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying Switch node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -169,8 +169,8 @@ bool WRL1SWITCH::Read( WRLPROC& proc, WRL1BASE* aTopNode )
SGNODE* WRL1SWITCH::TranslateToSG( SGNODE* aParent, WRL1STATUS* sp )
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Switch node with %lu children, %lu"
"references, and %lu back pointers (%lu total items)." ),
wxT( " * [INFO] Translating Switch node with %zu children, %zu"
"references, and %zu back pointers (%zu total items)." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size(), m_Items.size() );
if( m_Items.empty() )

View File

@ -51,8 +51,8 @@ WRL1TRANSFORM::WRL1TRANSFORM( NAMEREGISTER* aDictionary, WRL1NODE* aParent ) :
WRL1TRANSFORM::~WRL1TRANSFORM()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Transform node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying Transform node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}

View File

@ -57,8 +57,8 @@ WRL2APPEARANCE::WRL2APPEARANCE( WRL2NODE* aParent ) : WRL2NODE()
WRL2APPEARANCE::~WRL2APPEARANCE()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Appearance node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying Appearance node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -333,8 +333,8 @@ SGNODE* WRL2APPEARANCE::TranslateToSG( SGNODE* aParent )
"(parent ID: %d)." ), ptype ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Appearance node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Translating Appearance node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
if( m_sgNode )

View File

@ -56,8 +56,8 @@ WRL2FACESET::WRL2FACESET( WRL2NODE* aParent ) : WRL2NODE()
WRL2FACESET::~WRL2FACESET()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying IndexedFaceSet node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying IndexedFaceSet node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -550,8 +550,8 @@ SGNODE* WRL2FACESET::TranslateToSG( SGNODE* aParent )
"ID: %d)." ), ptype ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating IndexedFaceSet with %lu children, %lu references, "
"%lu back pointers, and %lu coord indices." ),
wxT( " * [INFO] Translating IndexedFaceSet with %zu children, %zu references, "
"%zu back pointers, and %zu coord indices." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size(), coordIndex.size() );
if( m_sgNode )

View File

@ -55,8 +55,8 @@ WRL2LINESET::WRL2LINESET( WRL2NODE* aParent ) : WRL2NODE()
WRL2LINESET::~WRL2LINESET()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying IndexedLineSet node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying IndexedLineSet node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}

View File

@ -262,8 +262,8 @@ SGNODE* WRL2MATERIAL::TranslateToSG( SGNODE* aParent )
"ID: %d)." ), ptype ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating IndexedFaceSet with %lu children, %lu references, and"
"%lu back pointers." ),
wxT( " * [INFO] Translating IndexedFaceSet with %zu children, %zu references, and"
"%zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
if( m_sgNode )

View File

@ -55,8 +55,8 @@ WRL2POINTSET::WRL2POINTSET( WRL2NODE* aParent ) : WRL2NODE()
WRL2POINTSET::~WRL2POINTSET()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying PointSet node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying PointSet node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}

View File

@ -56,8 +56,8 @@ WRL2SHAPE::WRL2SHAPE( WRL2NODE* aParent ) : WRL2NODE()
WRL2SHAPE::~WRL2SHAPE()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Shape node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying Shape node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -306,8 +306,8 @@ SGNODE* WRL2SHAPE::TranslateToSG( SGNODE* aParent )
}
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Shape with %lu children, %lu references, and"
"%lu back pointers." ),
wxT( " * [INFO] Translating Shape with %zu children, %zu references, and"
"%zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
bool vcolors = false;

View File

@ -52,8 +52,8 @@ WRL2SWITCH::WRL2SWITCH( WRL2NODE* aParent ) : WRL2NODE()
WRL2SWITCH::~WRL2SWITCH()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Switch node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying Switch node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -242,8 +242,8 @@ bool WRL2SWITCH::readChildren( WRLPROC& proc, WRL2BASE* aTopNode )
SGNODE* WRL2SWITCH::TranslateToSG( SGNODE* aParent )
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Switch with %lu children, %lu references, and"
"%lu back pointers." ),
wxT( " * [INFO] Translating Switch with %zu children, %zu references, and"
"%zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
if( choices.empty() )
@ -262,7 +262,7 @@ SGNODE* WRL2SWITCH::TranslateToSG( SGNODE* aParent )
if( whichChoice < 0 || whichChoice >= (int)choices.size() )
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Switch translation: no choice (choices = %lu), "
wxT( " * [INFO] Switch translation: no choice (choices = %zu), "
"whichChoice = %d." ), choices.size(), whichChoice );
return nullptr;

View File

@ -50,8 +50,8 @@ WRL2TRANSFORM::WRL2TRANSFORM( WRL2NODE* aParent ) : WRL2NODE()
WRL2TRANSFORM::~WRL2TRANSFORM()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Transform node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Destroying Transform node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -333,8 +333,8 @@ bool WRL2TRANSFORM::readChildren( WRLPROC& proc, WRL2BASE* aTopNode )
SGNODE* WRL2TRANSFORM::TranslateToSG( SGNODE* aParent )
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Switch with %lu children, %lu references, and"
"%lu back pointers." ),
wxT( " * [INFO] Translating Switch with %zu children, %zu references, and"
"%zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
if( m_Children.empty() && m_Refs.empty() )

View File

@ -237,8 +237,8 @@ SGNODE* X3DAPP::TranslateToSG( SGNODE* aParent )
ptype ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Appearance node with %lu children, %lu"
"references, and %lu back pointers." ),
wxT( " * [INFO] Translating Appearance node with %zu children, %zu"
"references, and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
if( m_sgNode )

View File

@ -233,8 +233,8 @@ SGNODE* X3DIFACESET::TranslateToSG( SGNODE* aParent )
ptype ) );
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating IndexedFaceSet with %lu children, %lu references, "
"%lu back pointers, and %lu coordinate indices." ),
wxT( " * [INFO] Translating IndexedFaceSet with %zu children, %zu references, "
"%zu back pointers, and %zu coordinate indices." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size(), coordIndex.size() );
if( m_sgNode )

View File

@ -62,7 +62,7 @@ X3DSHAPE::X3DSHAPE( X3DNODE* aParent ) : X3DNODE()
X3DSHAPE::~X3DSHAPE()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Shape with %lu children, %lu references, "
wxT( " * [INFO] Destroying Shape with %zu children, %zu references, "
"%and ul back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -246,8 +246,8 @@ SGNODE* X3DSHAPE::TranslateToSG( SGNODE* aParent )
return nullptr;
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Shape with %lu children, %lu references, "
"and %lu back pointers." ),
wxT( " * [INFO] Translating Shape with %zu children, %zu references, "
"and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
S3D::SGTYPES ptype = S3D::GetSGNodeType( aParent );

View File

@ -59,8 +59,8 @@ X3DTRANSFORM::X3DTRANSFORM( X3DNODE* aParent ) : X3DNODE()
X3DTRANSFORM::~X3DTRANSFORM()
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Destroying Transform with %lu children, %lu references, "
"and %lu back pointers." ),
wxT( " * [INFO] Destroying Transform with %zu children, %zu references, "
"and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
}
@ -258,8 +258,8 @@ bool X3DTRANSFORM::AddRefNode( X3DNODE* aNode )
SGNODE* X3DTRANSFORM::TranslateToSG( SGNODE* aParent )
{
wxLogTrace( traceVrmlPlugin,
wxT( " * [INFO] Translating Transform with %lu children, %lu references, "
"and %lu back pointers." ),
wxT( " * [INFO] Translating Transform with %zu children, %zu references, "
"and %zu back pointers." ),
m_Children.size(), m_Refs.size(), m_BackPointers.size() );
if( m_Children.empty() && m_Refs.empty() )