Back to index

salome-gui  6.5.0
Classes | Typedefs | Functions
SalomeApp_DataModel.cxx File Reference
#include "SalomeApp_DataModel.h"
#include "SalomeApp_Study.h"
#include "SalomeApp_DataObject.h"
#include "SalomeApp_Module.h"
#include "SalomeApp_Application.h"
#include <CAM_DataObject.h>
#include <SUIT_TreeSync.h>
#include <SUIT_DataObjectIterator.h>
#include <SALOMEconfig.h>

Go to the source code of this file.

Classes

class  SalomeApp_DataModelSync
 Auxiliary class for synchronizing tree of kernel objects and SUIT_DataObjects. More...

Typedefs

typedef SUIT_DataObjectsuitPtr

Functions

typedef _PTR (SObject) kerPtr
 Get the object referenced by this one.
void showTree (SUIT_DataObject *root)
 Auxiliary function, shows SUIT tree.

Typedef Documentation

Definition at line 42 of file SalomeApp_DataModel.cxx.


Function Documentation

_PTR ( SObject  )

Get the object referenced by this one.

Returns:
referenced object

Get the object referenced by this one.

Returns:
SALOMEDS object
referenced object

Definition at line 361 of file SalomeApp_DataObject.cxx.

{
  _PTR(SObject) refObj;
  _PTR(SObject) obj = myObject;
  while ( obj && obj->ReferencedObject( refObj ) )
    obj = refObj;

  return obj;
}

Here is the caller graph for this function:

Auxiliary function, shows SUIT tree.

Definition at line 246 of file SalomeApp_DataModel.cxx.

{
  qDebug( root ? "<tree>" : "<empty tree>" );
  if( !root )
    return;

  SUIT_DataObjectIterator it( root, SUIT_DataObjectIterator::DepthLeft );
  for( ; it.current(); ++it )
  {
    QString marg; marg.fill( ' ', 3*it.depth() );
    QString nnn = "%1 '%2'";
    qDebug( nnn.arg( marg ).arg( it.current()->name() ).toLatin1() );
  }
}