当前位置: 首页>>代码示例>>C++>>正文


C++ TAGformat类代码示例

本文整理汇总了C++中TAGformat的典型用法代码示例。如果您正苦于以下问题:C++ TAGformat类的具体用法?C++ TAGformat怎么用?C++ TAGformat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了TAGformat类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:30,代码来源:hatching_group_fixed.cpp

示例2: 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();


}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:30,代码来源:lpatch.cpp

示例3: 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();
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:25,代码来源:appear.C

示例4:

/////////////////////////////////////
// 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();
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:31,代码来源:hatching_group_fixed.C

示例5:

/////////////////////////////////////
// put_base_prototype()
/////////////////////////////////////
void
BStrokePool::put_base_prototype(TAGformat &d) const
{
   d.id();
   _prototypes[0]->format(*d);
   d.end_id();
}
开发者ID:Benignoperez,项目名称:jot-lib,代码行数:10,代码来源:b_stroke_pool.C

示例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();
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:10,代码来源:definer.C

示例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();
}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:12,代码来源:hatching_group.cpp

示例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();

}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:13,代码来源:feature_stroke_texture.C

示例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();
}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:17,代码来源:hatching_group_fixed.cpp

示例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();
      }
   }
}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:23,代码来源:hatching_collection.cpp

示例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();

}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:18,代码来源:edge_stroke_pool.C

示例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();
}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:23,代码来源:npr_solid_texture.cpp

示例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();} }
开发者ID:QuLogic,项目名称:jot-lib,代码行数:4,代码来源:hash_types.hpp

示例14:

 STDdstream &format(CDATA_ITEM *me, STDdstream &d) { _delim.set_stream(&d);
                                    (((T *)me)->*_format)(_delim); return d;}
开发者ID:QuLogic,项目名称:jot-lib,代码行数:2,代码来源:data_item.hpp


注:本文中的TAGformat类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。