2009-01-02 17:07:50 +00:00
|
|
|
/************************************************************************/
|
|
|
|
/* classes to handle items used in schematic: wires, bus, junctions ... */
|
|
|
|
/************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CLASS_SCHEMATIC_ITEMS_H
|
|
|
|
#define CLASS_SCHEMATIC_ITEMS_H
|
|
|
|
|
2009-11-03 13:26:31 +00:00
|
|
|
/* Flags for BUS ENTRY (bus to bus or wire to bus */
|
2009-01-02 17:07:50 +00:00
|
|
|
#define WIRE_TO_BUS 0
|
|
|
|
#define BUS_TO_BUS 1
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2009-12-02 21:44:03 +00:00
|
|
|
* Class SCH_LINE
|
2009-11-03 13:26:31 +00:00
|
|
|
* is a segment description base class to describe items which have 2 end
|
2009-01-02 17:07:50 +00:00
|
|
|
* points (track, wire, draw line ...)
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
class SCH_LINE : public SCH_ITEM
|
2009-01-02 17:07:50 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
int m_Width; // 0 = line, > 0 = tracks, bus ...
|
|
|
|
wxPoint m_Start; // Line start point
|
|
|
|
wxPoint m_End; // Line end point
|
|
|
|
|
|
|
|
bool m_StartIsDangling;
|
2009-11-03 13:26:31 +00:00
|
|
|
bool m_EndIsDangling; // TRUE if not connected (wires, tracks...)
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
public:
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_LINE( const wxPoint& pos, int layer );
|
|
|
|
~SCH_LINE() { }
|
2009-01-02 17:07:50 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_LINE* Next() const { return (SCH_LINE*) Pnext; }
|
|
|
|
SCH_LINE* Back() const { return (SCH_LINE*) Pback; }
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
virtual wxString GetClass() const
|
|
|
|
{
|
2009-12-02 21:44:03 +00:00
|
|
|
return wxT( "SCH_LINE" );
|
2009-01-02 17:07:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
bool IsOneEndPointAt( const wxPoint& pos );
|
|
|
|
SCH_LINE* GenCopy();
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
bool IsNull()
|
|
|
|
{
|
|
|
|
return m_Start == m_End;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-28 09:24:37 +00:00
|
|
|
/**
|
|
|
|
* Function GetBoundingBox
|
|
|
|
* returns the orthogonal, bounding box of this object for display purposes.
|
|
|
|
* This box should be an enclosing perimeter for visible components of this
|
|
|
|
* object, and the units should be in the pcb or schematic coordinate system.
|
|
|
|
* It is OK to overestimate the size by a few counts.
|
|
|
|
*/
|
2009-01-02 17:07:50 +00:00
|
|
|
EDA_Rect GetBoundingBox();
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
virtual void Draw( WinEDA_DrawPanel* panel, wxDC* DC, const wxPoint& offset,
|
|
|
|
int draw_mode, int Color = -1 );
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function Save
|
2009-11-03 13:26:31 +00:00
|
|
|
* writes the data structures for this object out to a FILE in "*.sch"
|
2009-04-05 20:49:15 +00:00
|
|
|
* format.
|
2009-01-02 17:07:50 +00:00
|
|
|
* @param aFile The FILE to write to.
|
|
|
|
* @return bool - true if success writing else false.
|
|
|
|
*/
|
|
|
|
bool Save( FILE* aFile ) const;
|
|
|
|
|
2009-06-30 19:21:41 +00:00
|
|
|
/** Function GetPenSize
|
|
|
|
* @return the size of the "pen" that be used to draw or plot this item
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual int GetPenSize();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
// Geometric transforms (used in block operations):
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Move
|
|
|
|
* move item to a new position.
|
2009-11-03 13:26:31 +00:00
|
|
|
* @param aMoveVector = the displacement vector
|
2009-07-27 14:32:40 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Move( const wxPoint& aMoveVector )
|
2009-07-27 14:32:40 +00:00
|
|
|
{
|
|
|
|
if( (m_Flags & STARTPOINT) == 0 )
|
|
|
|
m_Start += aMoveVector;
|
|
|
|
if( (m_Flags & ENDPOINT) == 0 )
|
|
|
|
m_End += aMoveVector;
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Mirror_Y
|
|
|
|
* mirror item relative to an Y axis
|
|
|
|
* @param aYaxis_position = the y axis position
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Mirror_X( int aXaxis_position );
|
|
|
|
virtual void Mirror_Y( int aYaxis_position );
|
|
|
|
virtual void Rotate( wxPoint rotationPoint );
|
2009-07-27 14:32:40 +00:00
|
|
|
|
2009-01-02 17:07:50 +00:00
|
|
|
#if defined(DEBUG)
|
|
|
|
void Show( int nestLevel, std::ostream& os );
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-01-02 17:07:50 +00:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
class SCH_NO_CONNECT : public SCH_ITEM
|
2009-01-02 17:07:50 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPoint m_Pos; /* XY coordinates of NoConnect. */
|
2010-09-05 17:01:48 +00:00
|
|
|
wxSize m_Size; // size of this symbol
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
public:
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_NO_CONNECT( const wxPoint& pos );
|
|
|
|
~SCH_NO_CONNECT() { }
|
2009-01-02 17:07:50 +00:00
|
|
|
virtual wxString GetClass() const
|
|
|
|
{
|
2009-12-02 21:44:03 +00:00
|
|
|
return wxT( "SCH_NO_CONNECT" );
|
2009-01-02 17:07:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_NO_CONNECT* GenCopy();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
|
|
|
/** Function GetPenSize
|
|
|
|
* @return the size of the "pen" that be used to draw or plot this item
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual int GetPenSize();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Draw( WinEDA_DrawPanel* panel, wxDC* DC,
|
|
|
|
const wxPoint& offset, int draw_mode,
|
|
|
|
int Color = -1 );
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function Save
|
2009-11-03 13:26:31 +00:00
|
|
|
* writes the data structures for this object out to a FILE in "*.sch"
|
2009-04-05 20:49:15 +00:00
|
|
|
* format.
|
2009-01-02 17:07:50 +00:00
|
|
|
* @param aFile The FILE to write to.
|
|
|
|
* @return bool - true if success writing else false.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
bool Save( FILE* aFile ) const;
|
2009-01-02 17:07:50 +00:00
|
|
|
|
2009-01-31 18:08:47 +00:00
|
|
|
/** Function HitTest
|
|
|
|
* @return true if the point aPosRef is within item area
|
|
|
|
* @param aPosRef = a wxPoint to test
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
bool HitTest( const wxPoint& aPosRef );
|
2009-01-31 18:08:47 +00:00
|
|
|
|
2009-11-28 09:24:37 +00:00
|
|
|
/**
|
|
|
|
* Function GetBoundingBox
|
2009-12-02 21:44:03 +00:00
|
|
|
* returns the orthogonal, bounding box of this object for display
|
|
|
|
* purposes. This box should be an enclosing perimeter for visible
|
|
|
|
* components of this object, and the units should be in the pcb or
|
|
|
|
* schematic coordinate system. It is OK to overestimate the size
|
|
|
|
* by a few counts.
|
2009-11-28 09:24:37 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
EDA_Rect GetBoundingBox();
|
2009-11-28 09:24:37 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
// Geometric transforms (used in block operations):
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Move
|
|
|
|
* move item to a new position.
|
2009-11-03 13:26:31 +00:00
|
|
|
* @param aMoveVector = the displacement vector
|
2009-07-27 14:32:40 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Move( const wxPoint& aMoveVector )
|
2009-07-27 14:32:40 +00:00
|
|
|
{
|
|
|
|
m_Pos += aMoveVector;
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Mirror_Y
|
|
|
|
* mirror item relative to an Y axis
|
|
|
|
* @param aYaxis_position = the y axis position
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Mirror_Y( int aYaxis_position );
|
|
|
|
virtual void Mirror_X( int aXaxis_position );
|
|
|
|
virtual void Rotate( wxPoint rotationPoint );
|
2009-01-02 17:07:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2009-12-02 21:44:03 +00:00
|
|
|
* Class SCH_BUS_ENTRY
|
2009-11-03 13:26:31 +00:00
|
|
|
*
|
|
|
|
* Defines a bus or wire entry.
|
2009-01-02 17:07:50 +00:00
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
class SCH_BUS_ENTRY : public SCH_ITEM
|
2009-01-02 17:07:50 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
int m_Width;
|
|
|
|
wxPoint m_Pos;
|
|
|
|
wxSize m_Size;
|
|
|
|
|
|
|
|
public:
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_BUS_ENTRY( const wxPoint& pos, int shape, int id );
|
|
|
|
~SCH_BUS_ENTRY() { }
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
virtual wxString GetClass() const
|
|
|
|
{
|
2009-12-02 21:44:03 +00:00
|
|
|
return wxT( "SCH_BUS_ENTRY" );
|
2009-01-02 17:07:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_BUS_ENTRY* GenCopy();
|
|
|
|
wxPoint m_End() const;
|
|
|
|
virtual void Draw( WinEDA_DrawPanel* panel, wxDC* DC,
|
|
|
|
const wxPoint& offset, int draw_mode,
|
|
|
|
int Color = -1 );
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function Save
|
2009-11-03 13:26:31 +00:00
|
|
|
* writes the data structures for this object out to a FILE in "*.sch"
|
2009-04-05 20:49:15 +00:00
|
|
|
* format.
|
2009-01-02 17:07:50 +00:00
|
|
|
* @param aFile The FILE to write to.
|
|
|
|
* @return bool - true if success writing else false.
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
bool Save( FILE* aFile ) const;
|
2009-01-02 17:07:50 +00:00
|
|
|
|
2009-11-28 09:24:37 +00:00
|
|
|
/**
|
|
|
|
* Function GetBoundingBox
|
2009-12-02 21:44:03 +00:00
|
|
|
* returns the orthogonal, bounding box of this object for display
|
|
|
|
* purposes. This box should be an enclosing perimeter for visible
|
|
|
|
* components of this object, and the units should be in the pcb or
|
|
|
|
* schematic coordinate system. It is OK to overestimate the size
|
|
|
|
* by a few counts.
|
2009-11-28 09:24:37 +00:00
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
EDA_Rect GetBoundingBox();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
|
|
|
/** Function GetPenSize
|
|
|
|
* @return the size of the "pen" that be used to draw or plot this item
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual int GetPenSize();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
// Geometric transforms (used in block operations):
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Move
|
|
|
|
* move item to a new position.
|
2009-11-03 13:26:31 +00:00
|
|
|
* @param aMoveVector = the displacement vector
|
2009-07-27 14:32:40 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Move( const wxPoint& aMoveVector )
|
2009-07-27 14:32:40 +00:00
|
|
|
{
|
|
|
|
m_Pos += aMoveVector;
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Mirror_Y
|
|
|
|
* mirror item relative to an Y axis
|
|
|
|
* @param aYaxis_position = the y axis position
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Mirror_Y( int aYaxis_position );
|
|
|
|
virtual void Mirror_X( int aXaxis_position );
|
|
|
|
virtual void Rotate( wxPoint rotationPoint );
|
2009-01-02 17:07:50 +00:00
|
|
|
};
|
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
class SCH_POLYLINE : public SCH_ITEM
|
2009-01-02 17:07:50 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-11-03 13:26:31 +00:00
|
|
|
int m_Width; /* Thickness */
|
2009-01-02 17:07:50 +00:00
|
|
|
std::vector<wxPoint> m_PolyPoints; // list of points (>= 2)
|
|
|
|
|
|
|
|
public:
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_POLYLINE( int layer );
|
|
|
|
~SCH_POLYLINE();
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
virtual wxString GetClass() const
|
|
|
|
{
|
2009-12-02 21:44:03 +00:00
|
|
|
return wxT( "SCH_POLYLINE" );
|
2009-01-02 17:07:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
SCH_POLYLINE* GenCopy();
|
|
|
|
virtual void Draw( WinEDA_DrawPanel* panel, wxDC* DC,
|
|
|
|
const wxPoint& offset, int draw_mode,
|
|
|
|
int Color = -1 );
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function Save
|
2009-11-03 13:26:31 +00:00
|
|
|
* writes the data structures for this object out to a FILE in "*.sch"
|
2009-04-05 20:49:15 +00:00
|
|
|
* format.
|
2009-01-02 17:07:50 +00:00
|
|
|
* @param aFile The FILE to write to.
|
|
|
|
* @return bool - true if success writing else false.
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
bool Save( FILE* aFile ) const;
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
/** Function AddPoint
|
|
|
|
* add a corner to m_PolyPoints
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
void AddPoint( const wxPoint& point )
|
2009-01-02 17:07:50 +00:00
|
|
|
{
|
|
|
|
m_PolyPoints.push_back( point );
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-01-02 17:07:50 +00:00
|
|
|
/** Function GetCornerCount
|
|
|
|
* @return the number of corners
|
|
|
|
*/
|
|
|
|
|
|
|
|
unsigned GetCornerCount() const { return m_PolyPoints.size(); }
|
2009-06-30 19:21:41 +00:00
|
|
|
|
|
|
|
/** Function GetPenSize
|
|
|
|
* @return the size of the "pen" that be used to draw or plot this item
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual int GetPenSize();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
// Geometric transforms (used in block operations):
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Move
|
|
|
|
* move item to a new position.
|
2009-11-03 13:26:31 +00:00
|
|
|
* @param aMoveVector = the displacement vector
|
2009-07-27 14:32:40 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Move( const wxPoint& aMoveVector )
|
2009-07-27 14:32:40 +00:00
|
|
|
{
|
|
|
|
for( unsigned ii = 0; ii < GetCornerCount(); ii++ )
|
|
|
|
m_PolyPoints[ii] += aMoveVector;
|
|
|
|
}
|
2010-09-05 17:01:48 +00:00
|
|
|
|
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Mirror_Y
|
|
|
|
* mirror item relative to an Y axis
|
|
|
|
* @param aYaxis_position = the y axis position
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Mirror_Y( int aYaxis_position );
|
|
|
|
virtual void Mirror_X( int aXaxis_position );
|
|
|
|
virtual void Rotate( wxPoint rotationPoint );
|
2009-01-02 17:07:50 +00:00
|
|
|
};
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
class SCH_JUNCTION : public SCH_ITEM
|
2009-01-02 17:07:50 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPoint m_Pos; /* XY coordinates of connection. */
|
2010-09-05 17:01:48 +00:00
|
|
|
wxSize m_Size;
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
public:
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_JUNCTION( const wxPoint& pos );
|
|
|
|
~SCH_JUNCTION() { }
|
2009-01-02 17:07:50 +00:00
|
|
|
|
|
|
|
virtual wxString GetClass() const
|
|
|
|
{
|
2009-12-02 21:44:03 +00:00
|
|
|
return wxT( "SCH_JUNCTION" );
|
2009-01-02 17:07:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-01-31 18:08:47 +00:00
|
|
|
/** Function HitTest
|
|
|
|
* @return true if the point aPosRef is within item area
|
|
|
|
* @param aPosRef = a wxPoint to test
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
bool HitTest( const wxPoint& aPosRef );
|
2009-01-31 18:08:47 +00:00
|
|
|
|
2009-11-28 09:24:37 +00:00
|
|
|
/**
|
|
|
|
* Function GetBoundingBox
|
2009-12-02 21:44:03 +00:00
|
|
|
* returns the orthogonal, bounding box of this object for display
|
|
|
|
* purposes. This box should be an enclosing perimeter for visible
|
|
|
|
* components of this object, and the units should be in the pcb or
|
|
|
|
* schematic coordinate system. It is OK to overestimate the size
|
|
|
|
* by a few counts.
|
2009-11-28 09:24:37 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
EDA_Rect GetBoundingBox();
|
2009-01-02 17:07:50 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_JUNCTION* GenCopy();
|
2009-01-02 17:07:50 +00:00
|
|
|
|
2009-06-30 19:21:41 +00:00
|
|
|
/** Function GetPenSize
|
|
|
|
* @return the size of the "pen" that be used to draw or plot this item
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual int GetPenSize();
|
2009-06-30 19:21:41 +00:00
|
|
|
|
2009-12-02 21:44:03 +00:00
|
|
|
virtual void Draw( WinEDA_DrawPanel* panel, wxDC* DC,
|
|
|
|
const wxPoint& offset, int draw_mode, int Color = -1 );
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-01-02 17:07:50 +00:00
|
|
|
/**
|
|
|
|
* Function Save
|
2009-11-03 13:26:31 +00:00
|
|
|
* writes the data structures for this object out to a FILE in "*.sch"
|
|
|
|
* format.
|
2009-01-02 17:07:50 +00:00
|
|
|
* @param aFile The FILE to write to.
|
|
|
|
* @return bool - true if success writing else false.
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
bool Save( FILE* aFile ) const;
|
2009-01-02 17:07:50 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
// Geometric transforms (used in block operations):
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Move
|
|
|
|
* move item to a new position.
|
2009-11-03 13:26:31 +00:00
|
|
|
* @param aMoveVector = the displacement vector
|
2009-07-27 14:32:40 +00:00
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Move( const wxPoint& aMoveVector )
|
2009-07-27 14:32:40 +00:00
|
|
|
{
|
|
|
|
m_Pos += aMoveVector;
|
|
|
|
}
|
|
|
|
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-07-27 14:32:40 +00:00
|
|
|
/** virtual function Mirror_Y
|
|
|
|
* mirror item relative to an Y axis
|
|
|
|
* @param aYaxis_position = the y axis position
|
|
|
|
*/
|
2010-09-05 17:01:48 +00:00
|
|
|
virtual void Mirror_Y( int aYaxis_position );
|
|
|
|
virtual void Mirror_X( int aXaxis_position );
|
|
|
|
virtual void Rotate( wxPoint rotationPoint );
|
2009-07-27 14:32:40 +00:00
|
|
|
|
2009-01-02 17:07:50 +00:00
|
|
|
#if defined(DEBUG)
|
2009-12-02 21:44:03 +00:00
|
|
|
void Show( int nestLevel, std::ostream& os );
|
2010-09-05 17:01:48 +00:00
|
|
|
|
2009-01-02 17:07:50 +00:00
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* CLASS_SCHEMATIC_ITEMS_H */
|