DiagramLine.cpp in umleditordemo_src.zi


UMLEditor...Original Link
    Sponsored links

			
/* ==========================================================================
	Class :			CDiagramLine

	Author :		Johan Rosengren, Abstrakt Mekanik AB

	Date :			2004-03-30

	Purpose :		Encapsulates a line object. Other line objects can be 
					derived from this class.

	Description :	First of all, we do not want constraints to the line 
					size (as we can't move the end points freely if that 
					is the case), so one "SetRect" must be modified. Second,
					we need a non-rectangular body area for hit testing, a 
					line in this case. Third, we need only a subset of the 
					selection markers. All this is implemented in this 
					class, to serve as a model or base class for other line 
					objects.

	Usage :			Use as a model for line objects.

   ========================================================================*/

#include "stdafx.h"
#include "DiagramLine.h"
#include "Tokenizer.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

VOID CALLBACK HitTest( int X, int Y, LPARAM data );
VOID CALLBACK HitTestRect( int X, int Y, LPARAM data );

/////////////////////////////////////////////////////////////////////////////
// CDiagramLine
//

CDiagramLine::CDiagramLine()
/* ============================================================
	Function :		CDiagramLine::CDiagramLine
	Description :	Constructor
	Access :		Public

	Return :		void
	Parameters :	none

	Usage :			

   ============================================================*/
{

	SetMinimumSize( CSize( -1, -1 ) );
	SetType( _T( "line" ) );

}

CDiagramLine::~CDiagramLine()
/* ============================================================
	Function :		CDiagramLine::~CDiagramLine
	Description :	Destructor
	Access :		Public

	Return :		void
	Parameters :	none

	Usage :			

   ============================================================*/
{
}

CDiagramEntity* CDiagramLine::Clone()
/* ======================================================			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 AboutDlg.cpp1.64 kB06-21-04 19:21
 AboutDlg.h514.00 B06-21-04 19:06
 ChildFrm.cpp3.26 kB06-23-04 11:59
 ChildFrm.h1.23 kB06-21-04 19:06
 08.00 B
 cpp_function_template.txt353.00 B06-19-04 20:48
 cpp_template.txt724.00 B06-12-04 11:56
 html_footer.txt18.00 B06-24-04 10:35
 html_header.txt184.00 B06-24-04 10:35
 h_template.txt319.00 B06-12-04 12:05
 h_template_template.txt349.00 B07-12-04 09:41
 08.00 B
 darrow.gif858.00 B06-09-04 13:40
 dfarrow.gif850.00 B06-08-04 16:48
 interface.gif953.00 B06-08-04 16:57
 larrow.gif855.00 B06-09-04 12:19
 lfarrow.gif842.00 B06-08-04 16:47
 lrdiamond.gif843.00 B06-08-04 16:50
 lrjog.gif845.00 B06-10-04 10:23
 note.gif842.00 B06-09-04 10:01
 partof.gif885.00 B06-09-04 16:52
 rarrow.gif854.00 B06-09-04 13:39
 rfarrow.gif843.00 B06-08-04 16:47
 uarrow.gif860.00 B06-09-04 13:40
 uddiamond.gif851.00 B06-08-04 16:46
 udjog.gif851.00 B06-10-04 10:26
 ufarrow.gif852.00 B06-08-04 16:47
 ExportDialog.cpp3.97 kB08-04-04 15:51
 ExportDialog.h1.30 kB08-04-04 15:52
 MainFrm.cpp4.39 kB08-05-04 17:07
 MainFrm.h1.37 kB06-21-04 19:06
 07.00 B
 cpp_function_template.txt353.00 B06-19-04 20:48
 cpp_template.txt724.00 B06-12-04 11:56
 html_footer.txt18.00 B06-24-04 10:35
 html_header.txt184.00 B06-24-04 10:35
 h_template.txt319.00 B06-12-04 12:05
 h_template_template.txt349.00 B07-12-04 09:41
 07.00 B
 darrow.gif858.00 B06-09-04 13:40
 dfarrow.gif850.00 B06-08-04 16:48
 interface.gif953.00 B06-08-04 16:57
 larrow.gif855.00 B06-09-04 12:19
 lfarrow.gif842.00 B06-08-04 16:47
 lrdiamond.gif843.00 B06-08-04 16:50
 lrjog.gif845.00 B06-10-04 10:23
 note.gif842.00 B06-09-04 10:01
 partof.gif885.00 B06-09-04 16:52
 rarrow.gif854.00 B06-09-04 13:39
 rfarrow.gif843.00 B06-08-04 16:47
 uarrow.gif860.00 B06-09-04 13:40
 uddiamond.gif851.00 B06-08-04 16:46
 udjog.gif851.00 B06-10-04 10:26
 ufarrow.gif852.00 B06-08-04 16:47
 05.00 B
 resource.h6.80 kB08-04-04 15:41
 attach.cur326.00 B06-27-04 21:45
 draw.cur326.00 B06-27-04 21:45
 Toolbar.bmp1.87 kB07-12-04 08:11
 UMLEditorDemo.ico1.05 kB05-27-04 20:39
 UMLEditorDemo.rc2405.00 B05-14-04 09:26
 UMLEditorDemoDoc.ico1.05 kB05-27-04 20:43
 up.cur326.00 B06-27-04 21:45
 up.ico766.00 B06-27-04 21:45
 StdAfx.cpp215.00 B05-14-04 09:26
 StdAfx.h1.03 kB05-14-04 09:26
 05.00 B
 UMLEditorDemo.cpp3.86 kB06-24-04 10:08
 UMLEditorDemo.dsp14.62 kB08-04-04 16:49
 UMLEditorDemo.dsw549.00 B05-14-04 09:26
 UMLEditorDemo.h1.37 kB06-24-04 10:08
 UMLEditorDemo.rc44.15 kB08-05-04 17:15
 UMLEditorDemoDoc.cpp5.10 kB06-27-04 22:51
 UMLEditorDemoDoc.h1.45 kB06-21-04 19:06
 UMLEditorDemoView.cpp30.89 kB08-04-04 15:55
 UMLEditorDemoView.h3.10 kB08-04-04 15:55
 AddParameterDialog.cpp5.56 kB06-27-04 21:32
 AddParameterDialog.h1.46 kB06-27-04 21:32
 Attribute.cpp6.70 kB06-27-04 20:09
 Attribute.h840.00 B06-27-04 20:09
 AttributeContainer.cpp7.01 kB06-23-04 12:00
 AttributeContainer.h878.00 B06-21-04 19:06
 ClassAttributePropertyDialog.cpp7.47 kB06-25-04 22:29
 ClassAttributePropertyDialog.h1.71 kB06-27-04 21:30
 ClassDisplayPropertyDialog.cpp2.70 kB06-27-04 21:09
 ClassDisplayPropertyDialog.h1.30 kB06-27-04 21:32
 ClassOperationPropertyDialog.cpp12.32 kB06-23-04 10:24
 ClassOperationPropertyDialog.h2.04 kB06-27-04 21:32
 05.00 B
 DiagramClipboardHandler.cpp6.83 kB07-07-04 13:04
 DiagramClipboardHandler.h651.00 B06-04-04 12:06
 DiagramEditor.cpp161.83 kB08-28-04 10:46
 DiagramEditor.h11.63 kB08-09-04 12:26
 DiagramEntity.cpp50.28 kB08-28-04 10:53
 DiagramEntity.h4.17 kB08-05-04 17:30
 DiagramEntityContainer.cpp36.28 kB08-04-04 15:15
 DiagramEntityContainer.h2.64 kB08-04-04 10:39
 DiagramLine.cpp9.67 kB06-28-04 11:09
 DiagramLine.h773.00 B06-04-04 12:07
 DiagramMenu.cpp4.13 kB07-07-04 12:56
 DiagramMenu.h278.00 B04-05-04 13:09
 DiagramPropertyDlg.cpp5.99 kB06-28-04 11:12
 DiagramPropertyDlg.h608.00 B06-04-04 12:06
 GroupFactory.cpp1.08 kB07-07-04 13:27
 GroupFactory.h458.00 B06-26-04 10:23
 Tokenizer.cpp6.07 kB08-28-04 11:00
 Tokenizer.h837.00 B06-18-04 19:24
 UndoItem.cpp1.59 kB06-28-04 11:15
 UndoItem.h493.00 B06-14-04 08:17
 06.00 B
 DiskObject.cpp36.05 kB08-04-04 15:04
 DiskObject.h2.17 kB08-04-04 15:03
 ExListBox.cpp7.48 kB06-23-04 12:18
 ExListBox.h1.45 kB06-21-04 19:06
 GetterSetterDialog.cpp3.53 kB06-27-04 20:19
 GetterSetterDialog.h1.27 kB06-27-04 21:37
 LinkFactory.cpp1.29 kB06-21-04 13:29
 LinkFactory.h392.00 B05-01-04 08:03
 Operation.cpp10.12 kB07-12-04 10:18
 Operation.h1.21 kB06-27-04 20:10
 OperationContainer.cpp7.05 kB06-23-04 12:00
 OperationContainer.h879.00 B06-14-04 10:03
 Parameter.cpp7.43 kB06-27-04 20:06
 Parameter.h887.00 B06-27-04 20:06
 ParameterContainer.cpp9.45 kB06-27-04 20:18
 ParameterContainer.h1,013.00 B06-27-04 20:14
 Property.cpp4.33 kB06-26-04 12:54
 Property.h689.00 B06-21-04 19:06
 PropertyContainer.cpp11.39 kB08-28-04 10:53
 PropertyContainer.h1.14 kB07-08-04 12:45
 PropertyListEditorDialog.cpp9.92 kB08-28-04 10:53
 PropertyListEditorDialog.h1.71 kB07-12-04 07:42
 06.00 B
 resource.h5.48 kB07-12-04 10:39
 attach.cur326.00 B06-27-04 21:44
 draw.cur326.00 B06-27-04 21:44
 up.cur326.00 B06-27-04 21:44
 up.ico766.00 B06-27-04 21:44
 StringHelpers.cpp2.44 kB06-24-04 10:08
 StringHelpers.h947.00 B07-12-04 10:16
 06.00 B
 TextFile.cpp19.35 kB06-22-04 16:42
 TextFile.h1.14 kB06-22-04 16:43
 UMLClassPropertyDialog.cpp25.02 kB07-11-04 09:41
 UMLClassPropertyDialog.h2.18 kB06-27-04 21:32
 UMLClipboardHandler.cpp5.93 kB08-04-04 15:29
 UMLClipboardHandler.h565.00 B05-30-04 15:07
 UMLControlFactory.cpp2.70 kB08-28-04 10:53
 UMLControlFactory.h270.00 B05-14-04 09:44
 UMLEditor.cpp45.84 kB08-28-04 09:54
 UMLEditor.h2.63 kB08-05-04 09:02
 UMLEditor.rc25.00 kB07-12-04 10:39
 UMLEditorPropertyDialog.cpp3.35 kB06-27-04 21:34
 UMLEditorPropertyDialog.h1.38 kB06-27-04 21:34
 UMLEntity.cpp19.82 kB08-05-04 17:55
 UMLEntity.h2.62 kB06-27-04 11:02
 UMLEntityClass.cpp66.76 kB08-28-04 10:49
 UMLEntityClass.h2.97 kB08-05-04 09:46
 UMLEntityClassTemplate.cpp27.41 kB07-12-04 21:50
 UMLEntityClassTemplate.h1.08 kB07-12-04 21:37
 UMLEntityContainer.cpp84.52 kB08-28-04 10:53
 UMLEntityContainer.h4.32 kB08-05-04 09:46
 UMLEntityDummy.cpp3.91 kB07-05-04 10:20
 UMLEntityDummy.h705.00 B07-05-04 10:20
 UMLEntityInterface.cpp10.32 kB06-27-04 20:29
 UMLEntityInterface.h702.00 B06-27-04 11:20
 UMLEntityLabel.cpp16.16 kB06-27-04 20:28
 UMLEntityLabel.h1.18 kB06-10-04 10:57
 UMLEntityNote.cpp11.45 kB06-27-04 20:27
 UMLEntityNote.h779.00 B06-27-04 11:19
 UMLEntityPackage.cpp12.43 kB06-27-04 21:33
 UMLEntityPackage.h787.00 B06-27-04 11:19
 UMLInterfacePropertyDialog.cpp6.53 kB06-27-04 21:33
 UMLInterfacePropertyDialog.h1.38 kB06-27-04 21:33
 UMLLabelPropertyDialog.cpp6.03 kB06-27-04 21:30
 UMLLabelPropertyDialog.h1.46 kB06-27-04 21:30
 UMLLineSegment.cpp67.54 kB08-28-04 10:53
 UMLLineSegment.h3.59 kB07-08-04 12:18
 UMLLinkPropertyDialog.cpp7.31 kB08-28-04 10:53
 UMLLinkPropertyDialog.h1.68 kB07-08-04 12:18
 UMLMenu.cpp3.06 kB06-27-04 21:30
 UMLMenu.h490.00 B05-14-04 09:44
 UMLNotePropertyDialog.cpp6.08 kB06-27-04 21:37
 UMLNotePropertyDialog.h1.43 kB06-27-04 21:37
 UMLPackagePropertyDialog.cpp6.53 kB06-27-04 21:28
 UMLPackagePropertyDialog.h1.35 kB06-27-04 21:28
 UMLTemplatePropertyDialog.cpp23.99 kB07-12-04 11:32
 UMLTemplatePropertyDialog.h2.30 kB07-12-04 09:03
 UMLUndoItem.cpp1.37 kB06-26-04 12:58
 UMLUndoItem.h507.00 B06-21-04 10:33
...

Related Items

    Sponsored links