本文整理汇总了C++中TAGformat::end_id方法的典型用法代码示例。如果您正苦于以下问题:C++ TAGformat::end_id方法的具体用法?C++ TAGformat::end_id怎么用?C++ TAGformat::end_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TAGformat
的用法示例。
在下文中一共展示了TAGformat::end_id方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/////////////////////////////////////
// put_visibility()
/////////////////////////////////////
void
HatchingGroupFixed::put_visibility(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "HatchingGroupFixed::put_visibility()");
BMESHptr m = _patch->mesh();
LMESHptr lm = dynamic_pointer_cast<LMESH>(m);
if (lm)
m = lm->cur_mesh();
Bface_list::size_type k;
vector<int> indices;
CBface_list& faces = m->faces();
for (k=0; k< faces.size(); k++) {
HatchingSimplexDataFixed *hsdf = HatchingSimplexDataFixed::find(faces[k]);
if (hsdf) {
if (hsdf->exists(this))
indices.push_back(faces[k]->index());
}
}
err_mesg(ERR_LEV_SPAM, "HatchingGroupFixed::put_visibility() - Stored %d tri indices.", indices.size());
d.id();
*d << indices;
d.end_id();
}
示例2:
/////////////////////////////////////
// put_base_prototype()
/////////////////////////////////////
void
BStrokePool::put_base_prototype(TAGformat &d) const
{
d.id();
_prototypes[0]->format(*d);
d.end_id();
}
示例3: lmesh
void
Lpatch::put_parent_patch(TAGformat &d) const
{
if (!(Config::get_var_bool("WRITE_SUBDIV_MESHES",false)))
return;
if (is_ctrl_patch())
return;
int parent_index;
int num_patches = lmesh()->parent_mesh()->npatches();
for (parent_index = 0; parent_index < num_patches; parent_index++)
if (lmesh()->parent_mesh()->patch(parent_index) == parent())
break;
if(parent_index == num_patches)
{
cerr << "Lpatch::put_parent_patch - error: found a noncontrol patch without a parent!\n";
parent_index = -1;
}
d.id();
*d << parent_index;
d.end_id();
}
示例4: while
void
APPEAR::put_texture(TAGformat &d) const
{
if (!_has_texture)
return;
d.id() << _tex_xform;
if (_texture) {
str_ptr texture_name =_texture->file();
// If texture name begins with JOT_ROOT, strip it off
// XXX - does not work if filename is below JOT_ROOT but the path to
// the file does not start with JOT_ROOT
if (strstr(**texture_name, **Config::JOT_ROOT()) == **texture_name) {
cerr << texture_name << endl;
char *name = **texture_name + Config::JOT_ROOT().len() + 1;
// Strip extra slashes ("/")
while (name && *name == '/' && *name != '\0') name++;
texture_name = str_ptr(name);
}
*d << texture_name;
} else *d << "NO_TEXTURE";
d.end_id();
}
示例5:
/////////////////////////////////////
// put_visibility()
/////////////////////////////////////
void
HatchingGroupFixed::put_visibility(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "HatchingGroupFixed::put_visibility()");
BMESH *m = _patch->mesh();
if (LMESH::isa(m))
m = ((LMESH*)m)->cur_mesh();
int k;
ARRAY<int> indices;
CBface_list& faces = m->faces();
for (k=0; k< faces.num(); k++)
{
HatchingSimplexDataFixed *hsdf = HatchingSimplexDataFixed::find(faces[k]);
if (hsdf)
{
if(hsdf->hack_exists(this))
indices += faces[k]->index();
}
}
err_mesg(ERR_LEV_SPAM, "HatchingGroupFixed::put_visibility() - Stored %d tri indices.", indices.num());
d.id();
*d << indices;
d.end_id();
}
示例6:
// format() - from DATA_ITEM, formats GEOM to a STDdstream
// (usually to a file or to a network connection)
void
DEFINER::put_inputs(TAGformat &d) const
{
d.id();
for (int i = 0; i < _inputs.num(); i++)
*d << _inputs[i]->name();
d.end_id();
}
示例7:
/////////////////////////////////////
// put_hatching_group_params()
/////////////////////////////////////
void
HatchingGroup::put_hatching_group_params(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "HatchingGroup::put_hatching_group_params()");
d.id();
_params.format(*d);
d.end_id();
}
示例8:
/////////////////////////////////////
// put_decal_pool()
/////////////////////////////////////
void
FeatureStrokeTexture::put_decal_pool(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "FeatureStrokeTexture::put_decal_pool()");
d.id();
_decal_strokes.format(*d);
d.end_id();
}
示例9: assert
/////////////////////////////////////
// put_backbone()
/////////////////////////////////////
void
HatchingGroupFixed::put_backbone(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "HatchingGroupFixed::put_backbone()");
if (_params.anim_style() == HatchingGroup::STYLE_MODE_NEAT)
assert(_backbone);
else
return;
d.id();
_backbone->format(*d);
d.end_id();
}
示例10:
/////////////////////////////////////
// put_hatching_group()
/////////////////////////////////////
//
// -Actually writes out all groups
//
/////////////////////////////////////
void
HatchingCollection::put_hatching_groups(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "HatchingCollection::put_hatching_groups()");
HatchingCollection::size_type i;
for (i=0; i<size(); i++) {
if ((*this)[i]->is_complete()) {
d.id();
*d << (*this)[i]->type();
(*this)[i]->format(*d);
d.end_id();
}
}
}
示例11: assert
void
EdgeStrokePool::put_edge_strip(TAGformat &d) const
{
ARRAY<Point2i> edge_strip;
CARRAY<Bvert*> &verts = _strip.verts();
CARRAY<Bedge*> &edges = _strip.edges();
assert(verts.num() == edges.num());
for (int i=0; i<verts.num(); i++)
edge_strip += Point2i(verts[i]->index(),edges[i]->index());
d.id();
*d << edge_strip;
d.end_id();
}
示例12:
////////////////////////////////////
// put_layer_name()
/////////////////////////////////////
void
NPRSolidTexture::put_layer_name(TAGformat &d) const
{
err_mesg(ERR_LEV_SPAM, "NPRSolidTexture::put_layer_name()");
d.id();
if (get_layer_name() == "")
{
err_mesg(ERR_LEV_SPAM, "NPRSolidTexture::put_layer_name() - Wrote NULL string.");
*d << "NULL_STR";
*d << " ";
}
else
{
*d << get_layer_name();
*d << " ";
err_mesg(ERR_LEV_SPAM, "NPRSolidTexture::put_layer_name() - Wrote string: '%s'", get_tex_name().c_str());
}
d.end_id();
}
示例13: put_var
virtual void put_var(TAGformat &d, CGELptr &g) const {
if (_dist && find(g)) {
d.id() << g->name() << get(g);
d.end_id();} }