本文整理汇总了C++中ON_BinaryArchive::WritePlane方法的典型用法代码示例。如果您正苦于以下问题:C++ ON_BinaryArchive::WritePlane方法的具体用法?C++ ON_BinaryArchive::WritePlane怎么用?C++ ON_BinaryArchive::WritePlane使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ON_BinaryArchive
的用法示例。
在下文中一共展示了ON_BinaryArchive::WritePlane方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Write
ON_BOOL32 ON_PointCloud::Write( ON_BinaryArchive& file ) const
{
bool rc = file.Write3dmChunkVersion(1,1);
if (rc) rc = file.WriteArray( m_P );
if (rc) rc = file.WritePlane( m_plane );
if (rc) rc = file.WriteBoundingBox( m_bbox );
if (rc) rc = file.WriteInt( m_flags);
// added for 1.1 (7 December 2005)
if (rc) rc = file.WriteArray(m_N);
if (rc) rc = file.WriteArray(m_C);
return rc;
}
示例2: Write
BOOL ON_Hatch::Write( ON_BinaryArchive& ar) const
{
BOOL rc = ar.Write3dmChunkVersion(1,1);
if (rc) rc = ar.WritePlane( m_plane);
if (rc) rc = ar.WriteDouble( m_pattern_scale);
if (rc) rc = ar.WriteDouble( m_pattern_rotation);
if (rc) rc = ar.WriteInt( m_pattern_index);
if (rc)
{
int i, count = m_loops.Count();
if( count < 0 )
count = 0;
BOOL rc = ar.WriteInt( count);
for( i = 0; i < count && rc; i++)
rc = m_loops[i]->Write( ar);
}
return rc;
}
示例3:
ON_BOOL32
ON_PlaneSurface::Write(
ON_BinaryArchive& file // open binary file
) const
{
ON_BOOL32 rc = file.Write3dmChunkVersion(1,1);
// version 1.0 chunks
if (rc)
rc = file.WritePlane( m_plane );
if (rc)
rc = file.WriteInterval( m_domain[0] );
if (rc)
rc = file.WriteInterval( m_domain[1] );
// added to version 1.1 chunks
if (rc)
rc = file.WriteInterval( m_extents[0] );
if (rc)
rc = file.WriteInterval( m_extents[1] );
return rc;
}
示例4: Write
ON_BOOL32 ON_Annotation::Write( ON_BinaryArchive& file ) const
{
int i;
ON_BOOL32 rc = file.Write3dmChunkVersion( 1, 0 );
// TODO: use
// if (rc) rc = file.WritePoint(....);
// if (rc) rc = file.WriteString(....);
// if (rc) rc = file.WriteDouble(....);
// to write object.
i = m_type;
if (rc)
rc = file.WriteInt( i );
if (rc)
rc = file.WritePlane( m_plane );
if (rc)
rc = file.WriteArray( m_points );
if (rc)
rc = file.WriteString( m_usertext );
if (rc)
rc = file.WriteString( m_defaulttext );
if( rc )
rc = file.WriteInt( m_userpositionedtext );
return rc;
}
示例5: Write
bool ON_ClippingPlane::Write( ON_BinaryArchive& file ) const
{
bool rc = file.BeginWrite3dmChunk(TCODE_ANONYMOUS_CHUNK,1,1);
if (!rc)
return false;
for(;;)
{
//version 1.1 - write list of viewport uuids instead of single uuid
ON_UUID viewport_id = ::ON_nil_uuid;
if( m_viewport_ids.Count() > 0 )
viewport_id = *(m_viewport_ids.Array());
rc = file.WriteUuid(viewport_id);
if (!rc) break;
rc = file.WriteUuid(m_plane_id);
if (!rc) break;
rc = file.WritePlane(m_plane);
if (!rc) break;
rc = file.WriteBool(m_bEnabled);
if (!rc) break;
//version 1.1 - write list of viewport uuids instead of single uuid
rc = m_viewport_ids.Write(file);
if (!rc) break;
break;
}
if ( !file.EndWrite3dmChunk() )
rc = false;
return rc;
}