Exemplo n.º 1
0
void MainForm::insertAtomic(engine::IAtomic* atomic, HTREEITEM parentItem)
{
    HTREEITEM atomicItem = assetGraph.InsertItem(
        strformat( "Atomic 0x%X", (unsigned int)(atomic) ).c_str(),
        3, 3,
        parentItem,
        TVI_LAST
    );
    assert( atomicItem != NULL );
    assetGraph.SetItemData( atomicItem, (DWORD)( atomic ) );

    if( atomic->getGeometry() )
    {
        insertGeometry( atomic->getGeometry(), atomicItem );
    }
}
Exemplo n.º 2
0
void VrmlNodeGeometry::render(Viewer *v) 
{
  if ( d_viewerObject && isModified() )
    {
      v->removeObject(d_viewerObject);
      d_viewerObject = 0;
    }

  if (d_viewerObject)
    v->insertReference(d_viewerObject);
  else
    {
      d_viewerObject = insertGeometry(v);
      clearModified();
    }
}
Exemplo n.º 3
0
void MainForm::insertSector(engine::IBSPSector* sector, HTREEITEM parentItem)
{
    HTREEITEM sectorItem = assetGraph.InsertItem(
        strformat( "Sector %X", (unsigned int)(sector) ).c_str(),
        6, 6,
        parentItem,
        TVI_LAST
    );
    assert( sectorItem != NULL );
    assetGraph.SetItemData( sectorItem, (DWORD)( sector ) );

    // insert geometry
    if( sector->getGeometry() )
    {
        insertGeometry( sector->getGeometry(), sectorItem );
    }
}