Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CDrawingVisualizer Class Reference

#include <visualize.h>

Collaboration diagram for CDrawingVisualizer:
Collaboration graph

Public Member Functions

 CDrawingVisualizer (Visio::IVApplicationPtr vsoApp)
 
void visualize_msc (Visio::IVDocumentPtr vsoDocument, const std::vector< MscPtr > &drawing)
 
Visio::IVMasterPtr find_master (TShapeType type, int style=0)
 ask if the target page is not empty More...
 
void visualize_bmsc (Visio::IVPagePtr vsoPage, const BMscPtr &bmsc)
 

Public Attributes

bool m_ask_overwrite
 

Protected Types

typedef std::map< MasterId,
Visio::IVMasterPtr > 
MasterIdMap
 
typedef std::map
< MscElementPtr,
Visio::IVShapePtr > 
ElementPtrMap
 
typedef std::map< InstancePtr,
Visio::IVShapePtr > 
InstancePtrMap
 
typedef std::map
< TimeRelationEventPtr,
Visio::IVShapePtr > 
TimeRelationEventPtrMap
 
typedef std::map< HMscNodePtr,
Visio::IVShapePtr > 
NodePtrMap
 

Protected Member Functions

Visio::IVShapePtr DropMaster (Visio::IVPagePtr vsoPage, Visio::IVMasterPtr master, const MscPoint &pos)
 
void SetLineBegin (Visio::IVShapePtr what, const MscPoint &pos)
 
void SetLineEnd (Visio::IVShapePtr what, const MscPoint &pos)
 
void SetControlPos (Visio::IVShapePtr shape, const wchar_t *row, Coordinate pos)
 
Visio::IVShapePtr drop_shape (Visio::IVPagePtr vsoPage, ElementPtrMap &shapes, MscElementPtr element, Visio::IVMasterPtr master)
 
void show_event (Visio::IVPagePtr vsoPage, ElementPtrMap &shapes, Visio::IVShapePtr parent, EventPtr event)
 
Visio::IVShapePtr connect_events (Visio::IVPagePtr vsoPage, Visio::IVShapePtr parent, EventPtr pred_event, EventPtr succ_event)
 
Visio::IVShapePtr drop_time_relation (Visio::IVPagePtr vsoPage, TimeRelationPtr time_relation)
 
void show_time_relations (Visio::IVPagePtr vsoPage, TimeRelationEventPtrMap &time_relations, Visio::IVShapePtr parent, EventPtr event)
 
template<class C >
Visio::IVShapePtr DropComment (Visio::IVPagePtr vsoPage, boost::intrusive_ptr< C > comment)
 
Visio::IVShapePtr DropAbsoluteTime (Visio::IVPagePtr vsoPage, AbsoluteTimePtr at)
 
void visualize_msc (Visio::IVPagePtr vsoPage, const MscPtr &msc)
 
Visio::IVShapePtr drop_hmsc_node (Visio::IVPagePtr vsoPage, NodePtrMap &nodes, HMscNodePtr node)
 
void show_time_relations1 (Visio::IVPagePtr vsoPage, Visio::IVShapePtr shape, TimeRelationRefNodePtrSet relations)
 
void show_time_relations2 (Visio::IVPagePtr vsoPage, NodePtrMap &nodes, const ReferenceNodePtr &reference_node, Visio::IVShapePtr shape, TimeRelationRefNodePtrSet relations)
 
void visualize_hmsc (Visio::IVPagePtr vsoPage, const HMscPtr &hmsc)
 

Protected Attributes

Visio::IVApplicationPtr m_vsoApp
 
MasterIdMap m_masters
 
std::list< MscPtrm_printing
 

Detailed Description

Definition at line 42 of file visualize.h.

Member Typedef Documentation

typedef std::map<MscElementPtr,Visio::IVShapePtr> CDrawingVisualizer::ElementPtrMap
protected

Definition at line 58 of file visualize.h.

typedef std::map<InstancePtr,Visio::IVShapePtr> CDrawingVisualizer::InstancePtrMap
protected

Definition at line 59 of file visualize.h.

typedef std::map<MasterId, Visio::IVMasterPtr> CDrawingVisualizer::MasterIdMap
protected

Definition at line 55 of file visualize.h.

typedef std::map<HMscNodePtr,Visio::IVShapePtr> CDrawingVisualizer::NodePtrMap
protected

Definition at line 133 of file visualize.h.

typedef std::map<TimeRelationEventPtr,Visio::IVShapePtr> CDrawingVisualizer::TimeRelationEventPtrMap
protected

Definition at line 60 of file visualize.h.

Constructor & Destructor Documentation

CDrawingVisualizer::CDrawingVisualizer ( Visio::IVApplicationPtr  vsoApp)

Member Function Documentation

Visio::IVShapePtr CDrawingVisualizer::connect_events ( Visio::IVPagePtr  vsoPage,
Visio::IVShapePtr  parent,
EventPtr  pred_event,
EventPtr  succ_event 
)
protected
Visio::IVShapePtr CDrawingVisualizer::drop_hmsc_node ( Visio::IVPagePtr  vsoPage,
NodePtrMap nodes,
HMscNodePtr  node 
)
protected
Visio::IVShapePtr CDrawingVisualizer::drop_shape ( Visio::IVPagePtr  vsoPage,
ElementPtrMap shapes,
MscElementPtr  element,
Visio::IVMasterPtr  master 
)
protected
Visio::IVShapePtr CDrawingVisualizer::drop_time_relation ( Visio::IVPagePtr  vsoPage,
TimeRelationPtr  time_relation 
)
protected
Visio::IVShapePtr CDrawingVisualizer::DropAbsoluteTime ( Visio::IVPagePtr  vsoPage,
AbsoluteTimePtr  at 
)
inlineprotected
template<class C >
Visio::IVShapePtr CDrawingVisualizer::DropComment ( Visio::IVPagePtr  vsoPage,
boost::intrusive_ptr< C >  comment 
)
inlineprotected
Visio::IVShapePtr CDrawingVisualizer::DropMaster ( Visio::IVPagePtr  vsoPage,
Visio::IVMasterPtr  master,
const MscPoint pos 
)
protected

Definition at line 224 of file visualize.cpp.

References get_page_height(), MscPoint::get_x(), and MscPoint::get_y().

Referenced by drop_hmsc_node(), and visualize_msc().

Visio::IVMasterPtr CDrawingVisualizer::find_master ( TShapeType  type,
int  style = 0 
)
void CDrawingVisualizer::SetControlPos ( Visio::IVShapePtr  shape,
const wchar_t *  row,
Coordinate  pos 
)
protected

Definition at line 252 of file visualize.cpp.

Referenced by drop_time_relation(), and visualize_bmsc().

void CDrawingVisualizer::SetLineBegin ( Visio::IVShapePtr  what,
const MscPoint pos 
)
protected

Definition at line 236 of file visualize.cpp.

References get_page_height(), MscPoint::get_x(), and MscPoint::get_y().

Referenced by show_event(), and visualize_bmsc().

void CDrawingVisualizer::SetLineEnd ( Visio::IVShapePtr  what,
const MscPoint pos 
)
protected

Definition at line 244 of file visualize.cpp.

References get_page_height(), MscPoint::get_x(), and MscPoint::get_y().

Referenced by show_event(), visualize_bmsc(), and visualize_hmsc().

void CDrawingVisualizer::show_event ( Visio::IVPagePtr  vsoPage,
ElementPtrMap shapes,
Visio::IVShapePtr  parent,
EventPtr  event 
)
protected
void CDrawingVisualizer::show_time_relations ( Visio::IVPagePtr  vsoPage,
TimeRelationEventPtrMap time_relations,
Visio::IVShapePtr  parent,
EventPtr  event 
)
protected
void CDrawingVisualizer::show_time_relations1 ( Visio::IVPagePtr  vsoPage,
Visio::IVShapePtr  shape,
TimeRelationRefNodePtrSet  relations 
)
protected

Definition at line 736 of file visualize.cpp.

References drop_time_relation().

Referenced by visualize_hmsc().

void CDrawingVisualizer::show_time_relations2 ( Visio::IVPagePtr  vsoPage,
NodePtrMap nodes,
const ReferenceNodePtr reference_node,
Visio::IVShapePtr  shape,
TimeRelationRefNodePtrSet  relations 
)
protected

Definition at line 756 of file visualize.cpp.

References drop_hmsc_node(), and drop_time_relation().

Referenced by visualize_hmsc().

void CDrawingVisualizer::visualize_bmsc ( Visio::IVPagePtr  vsoPage,
const BMscPtr bmsc 
)
void CDrawingVisualizer::visualize_hmsc ( Visio::IVPagePtr  vsoPage,
const HMscPtr hmsc 
)
protected
void CDrawingVisualizer::visualize_msc ( Visio::IVDocumentPtr  vsoDocument,
const std::vector< MscPtr > &  drawing 
)
void CDrawingVisualizer::visualize_msc ( Visio::IVPagePtr  vsoPage,
const MscPtr msc 
)
protected

Member Data Documentation

bool CDrawingVisualizer::m_ask_overwrite
MasterIdMap CDrawingVisualizer::m_masters
protected

Definition at line 56 of file visualize.h.

Referenced by CDrawingVisualizer(), and find_master().

std::list<MscPtr> CDrawingVisualizer::m_printing
protected

Definition at line 126 of file visualize.h.

Referenced by drop_hmsc_node(), and visualize_msc().

Visio::IVApplicationPtr CDrawingVisualizer::m_vsoApp
protected

Definition at line 53 of file visualize.h.

Referenced by CDrawingVisualizer(), and visualize_msc().


The documentation for this class was generated from the following files:

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:57 for Sequence Chart Studio by  doxygen