Org.simantics.document: Difference between revisions

From Developer Documents
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The Simantics document subsystem is defined in various plugins including
The Simantics document subsystem is defined in various plugins including


Line 13: Line 12:
*# '''org.simantics.scenegraph.loader''' ([[svn:foundation/2d/trunk/org.simantics.scenegraph.loader|SVN]])
*# '''org.simantics.scenegraph.loader''' ([[svn:foundation/2d/trunk/org.simantics.scenegraph.loader|SVN]])


The document data model is a '''scene graph''' which is loaded with the '''scene graph loader''' [[org.simantics.scenegraph.loader]].
The document data model is a '''scene graph''' which is loaded with the '''scene graph loader''' [[org.simantics.scenegraph.loader|Scene graph loader]].


Document scene graphs can be loaded into multiple representations. The default implementation (via plain '''org.simantics.scenegraph.loader.ScenegraphLoader''' adaption) can be used to transform the document model into a Wiki document via the interface '''org.simantics.document.WikiDocumentNode'''.
Document scene graphs can be loaded into multiple representations. The default implementation (via plain '''org.simantics.scenegraph.loader.ScenegraphLoader''' adaption) can be used to transform the document model into a Wiki document via the interface '''org.simantics.document.WikiDocumentNode'''.

Revision as of 06:34, 3 November 2011

The Simantics document subsystem is defined in various plugins including

  • Headless documentation model
    1. org.simantics.document (SVN)
    2. org.simantics.document.ontology (SVN)
  • Document editor
    1. org.simantics.document.ui (SVN)
    2. org.simantics.document.ui.ontology (SVN)
  • Scene graph
    1. org.simantics.scenegraph (SVN)
    2. org.simantics.scenegraph.ontology (SVN)
    3. org.simantics.scenegraph.loader (SVN)

The document data model is a scene graph which is loaded with the scene graph loader Scene graph loader.

Document scene graphs can be loaded into multiple representations. The default implementation (via plain org.simantics.scenegraph.loader.ScenegraphLoader adaption) can be used to transform the document model into a Wiki document via the interface org.simantics.document.WikiDocumentNode.

ScenegraphLoaderProcess loader = new ScenegraphLoaderProcess(new Composite());
WikiDocumentNodeImpl node = loader.load(graph, desc, ScenegraphLoaderUtils.getRuntime(graph, context));


Standard user interface editor is defined in and its associated ontology org.simantics.document.ui.ontology