本文整理汇总了C++中ON_TextLog::Print方法的典型用法代码示例。如果您正苦于以下问题:C++ ON_TextLog::Print方法的具体用法?C++ ON_TextLog::Print怎么用?C++ ON_TextLog::Print使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ON_TextLog
的用法示例。
在下文中一共展示了ON_TextLog::Print方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DumpInstanceDefinition
void CCommandSampleDumpBlockTree::DumpInstanceDefinition( const CRhinoInstanceDefinition* idef, ON_TextLog& dump, bool bRoot )
{
if( idef && ! idef->IsDeleted() )
{
ON_wString node;
if( bRoot )
node = L"\u2500";
else
node = L"\u2514";
dump.Print(L"%s Instance definition %d = %s\n", node, idef->Index(), idef->Name() );
const int idef_object_count = idef->ObjectCount();
if( idef_object_count )
{
dump.PushIndent();
for( int i = 0; i < idef->ObjectCount(); i++ )
{
const CRhinoObject* obj = idef->Object( i );
if( obj )
{
const CRhinoInstanceObject* iref = CRhinoInstanceObject::Cast( obj );
if( iref )
DumpInstanceDefinition( iref->InstanceDefinition(), dump, false );
else
dump.Print(L"\u2514 Object %d = %s\n", i, obj->ShortDescription(false) );
}
}
dump.PopIndent();
}
}
}
示例2: Dump
void ON_Hatch::Dump( ON_TextLog& dump) const
{
dump.Print( "Hatch: Solid fill");
int count = m_loops.Count();
dump.Print( "Loop count = %d\n", count);
for( int i = 0; i < count; i++)
m_loops[i]->Dump( dump);
}
示例3: Dump
void ON_AnnotationArrow::Dump( ON_TextLog& log ) const
{
log.Print("ON_AnnotationArrow: ");
log.Print(m_tail);
log.Print(" to ");
log.Print(m_head);
log.Print("\n");
}
示例4: Dump
void ON_Group::Dump( ON_TextLog& dump ) const
{
const wchar_t* name = GroupName();
if ( !name )
name = L"";
dump.Print("group index = %d\n",m_group_index);
dump.Print("group name = \"%ls\"\n",name);
}
示例5: Dump
void ON_ArcCurve::Dump( ON_TextLog& dump ) const
{
dump.Print( "ON_ArcCurve: domain = [%g,%g]\n",m_t[0],m_t[1]);
dump.PushIndent();
dump.Print( "center = ");
dump.Print( m_arc.plane.origin );
dump.Print( "\nradius = %g\n",m_arc.radius);
dump.Print( "length = %g\n",m_arc.Length());
dump.PopIndent();
}
示例6: Dump
void ON_UnknownUserData::Dump( ON_TextLog& dump ) const
{
ON_UserData::Dump(dump);
dump.PushIndent();
dump.Print( "unknown class uuid: ");
dump.Print( m_unknownclass_uuid );
dump.Print( "\n");
dump.Print( "Data size in 3dm archive: %d bytes\n",m_sizeof_buffer);
dump.PopIndent();
}
示例7: Dump
void ON_ClippingPlaneSurface::Dump( ON_TextLog& text_log ) const
{
text_log.Print("Clipping plane surface\n");
text_log.PushIndent();
text_log.Print("Enabled = %d",m_clipping_plane.m_bEnabled);
text_log.Print("View IDs =\n");
{
text_log.PushIndent();
ON_SimpleArray<ON_UUID> uuid_list;
m_clipping_plane.m_viewport_ids.GetUuids(uuid_list);
for( int i=0; i<uuid_list.Count(); i++ )
{
text_log.Print( uuid_list[i] );
text_log.Print("\n");
}
text_log.PopIndent();
}
text_log.Print("Plane ID = ");
text_log.Print(m_clipping_plane.m_plane_id);
text_log.Print("\n");
text_log.Print("Plane surface\n");
text_log.PushIndent();
ON_PlaneSurface::Dump(text_log);
text_log.PopIndent();
text_log.PopIndent();
}
示例8: Dump
void CExampleWriteUserData::Dump( ON_TextLog& text_log ) const
{
ON_UserData::Dump(text_log);
text_log.PushIndent();
const wchar_t* s = m_str;
if ( 0 == s )
s = L"";
text_log.Print("m_str: %ls\n",s);
text_log.Print("m_sn: %d\n",m_sn);
text_log.PopIndent();
}
示例9: Dump
void ON_Font::Dump( ON_TextLog& dump ) const
{
const wchar_t* name = FontName();
if ( !name )
name = L"";
dump.Print("font index = %d\n",m_font_index);
dump.Print("font name = \"%S\"\n",name);
dump.Print("font face name = \"%S\"\n",m_facename);
dump.Print("font weight = \"%d\"\n",m_font_weight);
dump.Print("font is italic = \"%d\"\n",m_font_italic);
dump.Print("font linefeed ratio = \"%g\"\n", m_linefeed_ratio);
}
示例10:
void ON_3dmApplication::Dump( ON_TextLog& dump ) const
{
const wchar_t* s = static_cast< const wchar_t* >(m_application_name);
if ( s )
dump.Print("Name: %ls\n",s);
s = static_cast< const wchar_t* >(m_application_URL);
if ( s )
dump.Print("URL: %ls\n",s);
s = static_cast< const wchar_t* >(m_application_details);
if ( s )
dump.Print("Details: %ls\n",s);
}
示例11: Dump
void ON_LinetypeSegment::Dump( ON_TextLog& dump) const
{
switch( m_seg_type)
{
case stLine:
dump.Print( "Segment type = Line: %g\n", m_length);
break;
case stSpace:
dump.Print( "Segment type = Space: %g\n", m_length);
break;
}
}
示例12:
void ON_3dmApplication::Dump( ON_TextLog& dump ) const
{
const wchar_t* s = m_application_name;
if ( s )
dump.Print("Name: %ls\n",s);
s = m_application_URL;
if ( s )
dump.Print("URL: %ls\n",s);
s = m_application_details;
if ( s )
dump.Print("Details: %ls\n",s);
}
示例13: source_archive
static const ONX_ErrorCounter Internal_TestFileRead(
ON_TextLog& text_log,
const ON_wString fullpath,
const ON_wString text_log_path,
bool bVerbose
)
{
FILE* fp = nullptr;
fp = ON_FileStream::Open3dmToRead(fullpath);
ONX_ErrorCounter error_counter;
error_counter.ClearLibraryErrorsAndWarnings();
const ON_wString path_to_print
= (text_log_path.IsNotEmpty())
? text_log_path
: fullpath;
for (;;)
{
if (nullptr == fp)
{
text_log.Print(
L"Skipped file: %ls\n",
static_cast<const wchar_t*>(path_to_print)
);
error_counter.IncrementFailureCount();
break;
}
text_log.Print(
L"File name: %ls\n",
static_cast<const wchar_t*>(path_to_print)
);
ON_BinaryFile source_archive(ON::archive_mode::read3dm, fp);
source_archive.SetArchiveFullPath(fullpath);
error_counter += Internal_TestModelRead(text_log, path_to_print, source_archive, bVerbose);
break;
}
if ( nullptr != fp )
{
ON_FileStream::Close(fp);
fp = nullptr;
}
return error_counter;
}
示例14: Dump
void ON_PointGrid::Dump( ON_TextLog& dump ) const
{
dump.Print( "ON_PointGrid size = %d X %d\n",
m_point_count[0], m_point_count[1] );
if ( m_point.Count() < 1 ) {
dump.Print(" NO point array\n");
}
else {
dump.PrintPointGrid( 3, false, m_point_count[0], m_point_count[1],
3*m_point_stride0, 3,
&m_point[0].x,
" point"
);
}
}
示例15:
void
ON_SurfaceProxy::Dump( ON_TextLog& dump ) const
{
dump.Print("ON_SurfaceProxy uses %x\n",m_surface);
if (m_surface )
m_surface->Dump(dump);
}