+// rs_line.cpp
+//
+// Part of the Architektonas Project
+// Originally part of QCad Community Edition by Andrew Mustun
+// Extensively rewritten and refactored by James L. Hammons
+// (C) 2010 Underground Software
+//
+// JLH = James L. Hammons <jlhamm@acm.org>
+//
+// Who When What
+// --- ---------- -----------------------------------------------------------
+// JLH 06/01/2010 Added this text. :-)
+//
#include "rs_line.h"
#include "rs_debug.h"
-#include "rs_graphicview.h"
-#include "rs_graphic.h"
-#include "paintintf.h"
+#include "drawing.h"
+#include "graphicview.h"
+#include "rs_linetypepattern.h"
+#include "paintinterface.h"
/**
* Constructor.
}
}
-//void RS_Line::draw(RS_Painter * painter, RS_GraphicView * view, double patternOffset)
-void RS_Line::draw(PaintInterface * painter, RS_GraphicView * view, double patternOffset)
+void RS_Line::draw(PaintInterface * painter, GraphicView * view, double patternOffset)
{
- if (painter == NULL || view == NULL)
+ if (!painter || !view)
//{
//printf("RS_Line::draw(): Bailing out!!! painter=%08X, view=%08X\n", painter, view);
return;
RS_LineTypePattern * pat = (isSelected() ? &patternSelected : view->getPattern(getPen().getLineType()));
#endif
- if (pat == NULL)
+ if (!pat)
{
//printf("RS_Line::draw(): Pattern == NULL!\n");
RS_DEBUG->print(RS_Debug::D_WARNING, "RS_Line::draw: Invalid line pattern");