diff -Nru ipe-7.2.20/build/doc/annotated.html ipe-7.2.23+dfsg1/build/doc/annotated.html --- ipe-7.2.20/build/doc/annotated.html 2020-08-24 02:43:46.000000000 +0000 +++ ipe-7.2.23+dfsg1/build/doc/annotated.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,166 +0,0 @@ - - -
- - - - -
- Ipelib
-
- |
-
- Ipelib
-
- |
-
#include <ipecanvas_cocoa.h>
Inherits ipe::CanvasBase.
--Public Member Functions | |
Canvas (IpeCanvasView *view) | |
virtual | ~Canvas () |
IpeCanvasView * | view () |
void | button (bool press, NSEvent *event) |
void | mouseMove (NSEvent *event) |
bool | key (NSEvent *event) |
void | scrollWheel (NSEvent *event) |
void | magnify (NSEvent *event) |
void | drawRect (NSRect rect) |
Public Member Functions inherited from ipe::CanvasBase | |
virtual | ~CanvasBase () |
void | setPage (const Page *page, int pno, int view, const Cascade *sheet) |
void | setResources (const PdfResources *resources) |
Vector | pan () const |
double | zoom () const |
const Cascade * | cascade () const |
Vector | center () const |
Vector | pos () const |
Vector | unsnappedPos () const |
Vector | globalPos () const |
Vector | simpleSnapPos () const |
const Snap & | snap () const |
void | setInkMode (bool ink) |
int | additionalModifiers () const |
void | setAdditionalModifiers (int mod) |
bool | type3Font () |
Vector | devToUser (const Vector &arg) const |
Vector | userToDev (const Vector &arg) const |
void | setCanvasStyle (const Style &style) |
Style | canvasStyle () const |
void | setPan (const Vector &v) |
void | setZoom (double zoom) |
void | setSnap (const Snap &s) |
void | setDimmed (bool dimmed) |
void | setAutoOrigin (const Vector &v) |
Matrix | canvasTfm () const |
void | setObserver (CanvasObserver *observer) |
void | setFifiVisible (bool visible) |
void | setSelectionVisible (bool visible) |
void | setTool (Tool *tool) |
void | finishTool () |
Tool * | tool () |
void | update () |
void | updateTool () |
int | canvasWidth () const |
int | canvasHeight () const |
-Additional Inherited Members | |
Public Types inherited from ipe::CanvasBase | |
enum | TModifiers { - EShift = 0x100, -EControl = 0x200, -EAlt = 0x400, -EMeta = 0x800, - - ECommand = 0x1000 - - } |
enum | TCursor { EStandardCursor, -EHandCursor, -ECrossCursor, -EDotCursor - } |
Static Public Member Functions inherited from ipe::CanvasBase | |
static int | selectPageOrView (Document *doc, int page=-1, int startIndex=0, int pageWidth=240, int width=600, int height=480) |
Protected Member Functions inherited from ipe::CanvasBase | |
CanvasBase () | |
void | drawPaper (cairo_t *cc) |
void | drawFrame (cairo_t *cc) |
void | drawAxes (cairo_t *cc) |
void | drawGrid (cairo_t *cc) |
void | drawObjects (cairo_t *cc) |
void | drawTool (Painter &painter) |
void | snapToPaperAndFrame () |
void | refreshSurface () |
void | computeFifi (double x, double y) |
void | drawFifi (cairo_t *cr) |
Protected Attributes inherited from ipe::CanvasBase | |
CanvasObserver * | iObserver |
Tool * | iTool |
const Page * | iPage |
int | iPageNumber |
int | iView |
const Cascade * | iCascade |
Style | iStyle |
Vector | iPan |
double | iZoom |
Snap | iSnap |
bool | iDimmed |
bool | iAutoSnap |
Vector | iAutoOrigin |
int | iAdditionalModifiers |
bool | isInkMode |
bool | iRepaintObjects |
double | iWidth |
double | iHeight |
double | iBWidth |
double | iBHeight |
cairo_surface_t * | iSurface |
Vector | iUnsnappedMousePos |
Vector | iMousePos |
Vector | iGlobalPos |
Vector | iOldFifi |
bool | iFifiVisible |
Snap::TSnapModes | iFifiMode |
bool | iSelectionVisible |
const PdfResources * | iResources |
std::unique_ptr< Fonts > | iFonts |
bool | iType3Font |
Canvas::Canvas | -( | -IpeCanvasView * | -view | ) | -- |
References ipe::CanvasBase::iView.
- -
-
|
- -virtual | -
-
|
- -inline | -
void Canvas::button | -( | -bool | -press, | -
- | - | NSEvent * | -event | -
- | ) | -- |
Referenced by drawRect().
- -void Canvas::mouseMove | -( | -NSEvent * | -event | ) | -- |
References ipe::CanvasObserver::canvasObserverPositionChanged(), ipe::CanvasBase::computeFifi(), ipe::CanvasBase::iHeight, ipe::CanvasBase::iObserver, ipe::CanvasBase::iTool, ipe::CanvasBase::iView, ipe::Tool::mouseMove(), and mouseMove().
- -Referenced by mouseMove().
- -bool Canvas::key | -( | -NSEvent * | -event | ) | -- |
References ipe::CanvasBase::iTool, ipe::Tool::key(), and key().
- -Referenced by key().
- -void Canvas::scrollWheel | -( | -NSEvent * | -event | ) | -- |
References ipe::Canvas::Canvas(), ipe::CanvasObserver::canvasObserverWheelMoved(), and ipe::CanvasBase::iObserver.
- -void Canvas::magnify | -( | -NSEvent * | -event | ) | -- |
References ipe::CanvasObserver::canvasObserverWheelMoved(), ipe::CanvasBase::devToUser(), ipe::CanvasBase::iHeight, ipe::CanvasBase::iObserver, ipe::CanvasBase::iView, ipe::CanvasBase::iZoom, ipe::CanvasBase::pan(), ipe::CanvasBase::setPan(), ipe::CanvasBase::setZoom(), and ipe::CanvasBase::update().
- -void Canvas::drawRect | -( | -NSRect | -rect | ) | -- |
References button(), ipe::CanvasObserver::canvasObserverMouseAction(), ipe::CanvasBase::canvasTfm(), ipe::CanvasBase::computeFifi(), ipe::Canvas::drawFifi(), ipe::CanvasBase::drawTool(), ipe::CanvasBase::EAlt, ipe::CanvasBase::ECommand, ipe::CanvasBase::EControl, ipe::CanvasBase::EShift, ipe::CanvasBase::iAdditionalModifiers, ipe::CanvasBase::iBHeight, ipe::CanvasBase::iBWidth, ipe::CanvasBase::iCascade, ipe::CanvasBase::iFifiVisible, ipe::CanvasBase::iFonts, ipe::CanvasBase::iGlobalPos, ipe::CanvasBase::iHeight, ipe::CanvasBase::iObserver, ipe::CanvasBase::iPage, ipe::CanvasBase::iSurface, ipe::CanvasBase::iTool, ipe::CanvasBase::iView, ipe::CanvasBase::iWidth, ipe::CanvasBase::iZoom, ipe::Tool::mouseButton(), ipe::CanvasBase::refreshSurface(), ipe::Painter::transform(), and ipe::Canvas::window().
- -
- Ipelib
-
- |
-
This is the complete list of members for Canvas, including all inherited members.
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::DataSource.
--Public Member Functions | |
A85Source (DataSource &source) | |
virtual int | getChar () |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
virtual int | length () const |
virtual void | setPosition (int pos) |
virtual int | position () const |
Filter source adding ASCII85 decoding.
-A85Source::A85Source | -( | -DataSource & | -source | ) | -- |
-
|
- -virtual | -
Get one more character, or EOF.
- -Implements ipe::DataSource.
- -References ipe::DataSource::getChar().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::A85Source, including all inherited members.
-A85Source(DataSource &source) | ipe::A85Source | |
getChar() | ipe::A85Source | virtual |
length() const | ipe::DataSource | virtual |
position() const | ipe::DataSource | virtual |
setPosition(int pos) | ipe::DataSource | virtual |
~DataSource()=0 | ipe::DataSource | pure virtual |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::Stream.
--Public Member Functions | |
A85Stream (Stream &stream) | |
virtual void | putChar (char ch) |
virtual void | close () |
Public Member Functions inherited from ipe::Stream | |
virtual | ~Stream () |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
Filter stream adding ASCII85 encoding.
-A85Stream::A85Stream | -( | -Stream & | -stream | ) | -- |
-
|
- -virtual | -
Output character.
- -Implements ipe::Stream.
- -References ipe::Stream::putChar(), and ipe::Stream::putCString().
- -
-
|
- -virtual | -
Close the stream. No more writing allowed!
- -Reimplemented from ipe::Stream.
- -References ipe::Stream::close(), and ipe::Stream::putCString().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::A85Stream, including all inherited members.
-A85Stream(Stream &stream) | ipe::A85Stream | |
close() | ipe::A85Stream | virtual |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch) | ipe::A85Stream | virtual |
putCString(const char *s) | ipe::Stream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::Stream | virtual |
putString(String s) | ipe::Stream | virtual |
putXmlString(String s) | ipe::Stream | |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipeattributes.h>
-Public Member Functions | |
AllAttributes () | |
-Public Attributes | |
TPathMode | iPathMode |
Attribute | iStroke |
Attribute | iFill |
Attribute | iDashStyle |
Attribute | iPen |
bool | iFArrow |
bool | iRArrow |
Attribute | iFArrowShape |
Attribute | iRArrowShape |
Attribute | iFArrowSize |
Attribute | iRArrowSize |
Attribute | iSymbolSize |
Attribute | iTextSize |
THorizontalAlignment | iHorizontalAlignment |
TVerticalAlignment | iVerticalAlignment |
Attribute | iTextStyle |
Attribute | iLabelStyle |
TPinned | iPinned |
bool | iTransformableText |
TSplineType | iSplineType |
TTransformations | iTransformations |
TLineJoin | iLineJoin |
TLineCap | iLineCap |
TFillRule | iFillRule |
Attribute | iOpacity |
Attribute | iStrokeOpacity |
Attribute | iTiling |
Attribute | iGradient |
Attribute | iMarkShape |
Collection of all object attributes.
-AllAttributes::AllAttributes | -( | -) | -- |
Constructor sets default values.
- -Referenced by ipe::AttributeMap::add().
- -TPathMode ipe::AllAttributes::iPathMode | -
Should we stroke and/or fill?
- -Attribute ipe::AllAttributes::iStroke | -
Stroke color.
- -Referenced by ipe::Latex::addPageNumber(), and ipe::Text::Text().
- -Attribute ipe::AllAttributes::iFill | -
Fill color.
- -Attribute ipe::AllAttributes::iDashStyle | -
Dash style.
- -Attribute ipe::AllAttributes::iPen | -
Pen (that is, line width).
- -bool ipe::AllAttributes::iFArrow | -
Arrow forward?
- -bool ipe::AllAttributes::iRArrow | -
Reverse arrow?
- -Attribute ipe::AllAttributes::iFArrowSize | -
Forward arrow size.
- -Attribute ipe::AllAttributes::iRArrowSize | -
Reverse arrow size.
- -Attribute ipe::AllAttributes::iTextSize | -
Text size. Horizontal alignment of label objects.
- -Referenced by ipe::Latex::addPageNumber(), and ipe::Text::Text().
- -THorizontalAlignment ipe::AllAttributes::iHorizontalAlignment | -
Referenced by ipe::Latex::addPageNumber(), and ipe::Text::Text().
- -TVerticalAlignment ipe::AllAttributes::iVerticalAlignment | -
Vertical alignment of label objects.
- -Referenced by ipe::Latex::addPageNumber(), and ipe::Text::Text().
- -Attribute ipe::AllAttributes::iTextStyle | -
Text style for minipages.
- -Referenced by ipe::Text::Text().
- -Attribute ipe::AllAttributes::iLabelStyle | -
Text style for labels.
- -Referenced by ipe::Text::Text().
- -TPinned ipe::AllAttributes::iPinned | -
Pinned status. Should newly created text be transformable?
- -Referenced by ipe::Object::Object().
- -bool ipe::AllAttributes::iTransformableText | -
If this is false, newly created text will only allow translations. Otherwise, the value of iTranslations is used (as for other objects).
- -Referenced by ipe::Text::Text().
- -TSplineType ipe::AllAttributes::iSplineType | -
What kind of splines should be created?
- -TTransformations ipe::AllAttributes::iTransformations | -
Allowed transformations.
- -Referenced by ipe::Object::Object().
- -Attribute ipe::AllAttributes::iOpacity | -
Opacity.
- -Referenced by ipe::Text::Text().
- -Attribute ipe::AllAttributes::iStrokeOpacity | -
Stroke opacity.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::AllAttributes, including all inherited members.
-AllAttributes() | ipe::AllAttributes | |
iDashStyle | ipe::AllAttributes | |
iFArrow | ipe::AllAttributes | |
iFArrowShape | ipe::AllAttributes | |
iFArrowSize | ipe::AllAttributes | |
iFill | ipe::AllAttributes | |
iFillRule | ipe::AllAttributes | |
iGradient | ipe::AllAttributes | |
iHorizontalAlignment | ipe::AllAttributes | |
iLabelStyle | ipe::AllAttributes | |
iLineCap | ipe::AllAttributes | |
iLineJoin | ipe::AllAttributes | |
iMarkShape | ipe::AllAttributes | |
iOpacity | ipe::AllAttributes | |
iPathMode | ipe::AllAttributes | |
iPen | ipe::AllAttributes | |
iPinned | ipe::AllAttributes | |
iRArrow | ipe::AllAttributes | |
iRArrowShape | ipe::AllAttributes | |
iRArrowSize | ipe::AllAttributes | |
iSplineType | ipe::AllAttributes | |
iStroke | ipe::AllAttributes | |
iStrokeOpacity | ipe::AllAttributes | |
iSymbolSize | ipe::AllAttributes | |
iTextSize | ipe::AllAttributes | |
iTextStyle | ipe::AllAttributes | |
iTiling | ipe::AllAttributes | |
iTransformableText | ipe::AllAttributes | |
iTransformations | ipe::AllAttributes | |
iVerticalAlignment | ipe::AllAttributes |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Angle () | |
Angle (double alpha) | |
operator double () const | |
double | degrees () const |
Angle | normalize (double lowlimit) |
bool | liesBetween (Angle small, Angle large) const |
-Static Public Member Functions | |
static Angle | Degrees (double alpha) |
A double that's an angle.
-An Angle is really nothing more than a double. Having a separate type is sometimes useful, for instance in the Vector constructor, and this class serves as the right place for a few utility functions. It also makes it clear whether a value is in radians or in degrees.
-
-
|
- -inlineexplicit | -
Construct uninitialized angle.
- -Referenced by Degrees().
- -
-
|
- -inline | -
Construct an angle (in radians).
- -
-
|
- -inlinestatic | -
Construct an angle in degrees.
- -References Angle().
- -Referenced by ipe::ImlParser::parseStyle().
- -
-
|
- -inline | -
Return value (in radians).
- -References degrees(), liesBetween(), and normalize().
- -double Angle::degrees | -( | -) | -const | -
Referenced by operator double(), and ipe::StyleSheet::saveAsXml().
- -Angle Angle::normalize | -( | -double | -lowlimit | ) | -- |
Normalize the value to the range lowlimit .. lowlimit + 2 pi.
-This Angle object is modified, a copy is returned.
- -Referenced by ipe::Painter::doDrawArc(), ipe::Snap::getLine(), ipe::Arc::intersect(), liesBetween(), and operator double().
- -When considering the positively oriented circle arc from angle small to large, does it cover this angle?
- -References normalize(), and ipe::Vector::Vector().
- -Referenced by ipe::Arc::bbox(), ipe::Arc::distance(), ipe::Arc::intersect(), and operator double().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Angle, including all inherited members.
-Angle() | ipe::Angle | inlineexplicit |
Angle(double alpha) | ipe::Angle | inline |
degrees() const | ipe::Angle | |
Degrees(double alpha) | ipe::Angle | inlinestatic |
liesBetween(Angle small, Angle large) const | ipe::Angle | |
normalize(double lowlimit) | ipe::Angle | |
operator double() const | ipe::Angle | inline |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Arc () | |
Arc (const Matrix &m, Angle alpha, Angle beta) | |
Arc (const Matrix &m) | |
Arc (const Matrix &m0, const Vector &begp, const Vector &endp) | |
bool | isEllipse () const |
double | distance (const Vector &v, double bound) const |
double | distance (const Vector &v, double bound, Vector &pos, Angle &angle) const |
Rect | bbox () const |
Vector | beginp () const |
Vector | endp () const |
void | intersect (const Line &l, std::vector< Vector > &result) const |
void | intersect (const Segment &s, std::vector< Vector > &result) const |
void | intersect (const Arc &a, std::vector< Vector > &result) const |
void | intersect (const Bezier &b, std::vector< Vector > &result) const |
-Public Attributes | |
Matrix | iM |
Angle | iAlpha |
Angle | iBeta |
An arc of an ellipse.
-The ellipse is represented using the matrix that transforms the unit circle x^2 + y^2 = 1 to the desired ellipse. The arc coordinate system is the coordinate system of this unit circle.
-A full ellipse is described by iAlpha = 0, iBeta = IpeTwoPi.
-An elliptic arc is the image of the circular arc from iAlpha to iBeta (in increasing angle in arc coordinate system).
-
-
|
- -inline | -
Construct unit circle.
- -Referenced by ipe::Matrix::operator*().
- -
-
|
- -inline | -
Construct with given parameters.
- -
-
|
- -inline | -
Construct an ellipse.
- -Arc::Arc | -( | -const Matrix & | -m, | -
- | - | const Vector & | -begp, | -
- | - | const Vector & | -endp | -
- | ) | -- |
Construct arc for ellipse defined by m, from begp to endp.
-This assumes that m has been correctly computed such that begb and endp already lie on the ellipse.
- -References ipe::Matrix::inverse().
- -
-
|
- -inline | -
Is this an entire ellipse?
- - - -Referenced by ipe::CairoPainter::doDrawArc(), and ipe::Painter::doDrawArc().
- -double Arc::distance | -( | -const Vector & | -v, | -
- | - | double | -bound | -
- | ) | -const | -
This doesn't really compute the distance, but a reasonable approximation.
- -Referenced by ipe::Ellipse::distance(), ipe::Snap::setEdge(), ipe::CurveSegment::snapBnd(), and ipe::Ellipse::snapBnd().
- -double Arc::distance | -( | -const Vector & | -v, | -
- | - | double | -bound, | -
- | - | Vector & | -pos, | -
- | - | Angle & | -angle | -
- | ) | -const | -
Like distance(), but sets pos to point on arc and angle to its angle in arc coordinates. angle and pos are not modified if result is larger than bound.
- -References ipe::Vector::angle(), ipe::Matrix::inverse(), ipe::Angle::liesBetween(), and ipe::Vector::normalized().
- -Rect Arc::bbox | -( | -) | -const | -
Return a tight bounding box.
- -References ipe::Rect::addPoint(), ipe::Linear::inverse(), and ipe::Angle::liesBetween().
- -Referenced by intersect().
- -
-
|
- -inline | -
Return begin point of arc.
- - - -Referenced by ipe::Path::drawArrow(), and intersect().
- -
-
|
- -inline | -
Return end point of arc.
- - - -Referenced by ipe::Path::drawArrow(), and intersect().
- -void Arc::intersect | -( | -const Line & | -l, | -
- | - | std::vector< Vector > & | -result | -
- | ) | -const | -
Compute intersection points of Arc with Line.
- -References ipe::Vector::angle(), ipe::Line::dir(), ipe::Matrix::inverse(), ipe::Line::iP, ipe::Angle::liesBetween(), and ipe::Matrix::linear().
- -Referenced by intersect().
- -void Arc::intersect | -( | -const Segment & | -s, | -
- | - | std::vector< Vector > & | -result | -
- | ) | -const | -
Compute intersection points of Arc with Segment.
- -References ipe::Matrix::a, ipe::Vector::angle(), bbox(), iAlpha, iBeta, iM, intersect(), ipe::Matrix::inverse(), ipe::Segment::iP, ipe::Segment::iQ, ipe::Angle::liesBetween(), ipe::Segment::line(), and ipe::size().
- -void Arc::intersect | -( | -const Bezier & | -b, | -
- | - | std::vector< Vector > & | -result | -
- | ) | -const | -
Compute intersection points of Arc with Bezier.
- -References ipe::Rect::addPoint(), intersect(), ipe::Bezier::iV, ipe::Angle::normalize(), ipe::Bezier::straight(), and ipe::Bezier::subdivide().
- -Matrix ipe::Arc::iM | -
Referenced by beginp(), ipe::CairoPainter::doDrawArc(), ipe::Painter::doDrawArc(), endp(), intersect(), ipe::Matrix::operator*(), and ipe::Snap::setEdge().
- -Angle ipe::Arc::iAlpha | -
Referenced by beginp(), ipe::CairoPainter::doDrawArc(), ipe::Painter::doDrawArc(), intersect(), isEllipse(), and ipe::Matrix::operator*().
- -Angle ipe::Arc::iBeta | -
Referenced by ipe::CairoPainter::doDrawArc(), ipe::Painter::doDrawArc(), endp(), intersect(), isEllipse(), and ipe::Matrix::operator*().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Arc, including all inherited members.
-Arc() | ipe::Arc | inline |
Arc(const Matrix &m, Angle alpha, Angle beta) | ipe::Arc | inline |
Arc(const Matrix &m) | ipe::Arc | inline |
Arc(const Matrix &m0, const Vector &begp, const Vector &endp) | ipe::Arc | |
bbox() const | ipe::Arc | |
beginp() const | ipe::Arc | inline |
distance(const Vector &v, double bound) const | ipe::Arc | |
distance(const Vector &v, double bound, Vector &pos, Angle &angle) const | ipe::Arc | |
endp() const | ipe::Arc | inline |
iAlpha | ipe::Arc | |
iBeta | ipe::Arc | |
iM | ipe::Arc | |
intersect(const Line &l, std::vector< Vector > &result) const | ipe::Arc | |
intersect(const Segment &s, std::vector< Vector > &result) const | ipe::Arc | |
intersect(const Arc &a, std::vector< Vector > &result) const | ipe::Arc | |
intersect(const Bezier &b, std::vector< Vector > &result) const | ipe::Arc | |
isEllipse() const | ipe::Arc | inline |
- Ipelib
-
- |
-
#include <ipeattributes.h>
-Public Member Functions | |
Attribute () | |
Attribute (bool symbolic, String name) | |
Attribute (Fixed value) | |
Attribute (Color color) | |
Attribute (THorizontalAlignment align) | |
Attribute (TVerticalAlignment align) | |
Attribute (TLineJoin join) | |
Attribute (TLineCap cap) | |
Attribute (TFillRule rule) | |
Attribute (TPinned pin) | |
Attribute (TTransformations trans) | |
Attribute (TPathMode pm) | |
Attribute (TSplineType st) | |
bool | isSymbolic () const |
bool | isString () const |
bool | isColor () const |
bool | isNumber () const |
bool | isEnum () const |
bool | isBoolean () const |
bool | isNormal () const |
int | index () const |
int | internal () const |
String | string () const |
Fixed | number () const |
Color | color () const |
bool | boolean () const |
THorizontalAlignment | horizontalAlignment () const |
TVerticalAlignment | verticalAlignment () const |
TLineJoin | lineJoin () const |
TLineCap | lineCap () const |
TFillRule | fillRule () const |
TPinned | pinned () const |
TTransformations | transformations () const |
TPathMode | pathMode () const |
TSplineType | splineType () const |
bool | operator== (const Attribute &rhs) const |
bool | operator!= (const Attribute &rhs) const |
bool | isArcArrow () const |
bool | isMidArrow () const |
-Static Public Member Functions | |
static Attribute | Boolean (bool flag) |
static Attribute | BLACK () |
static Attribute | WHITE () |
static Attribute | ONE () |
static Attribute | NORMAL () |
static Attribute | UNDEFINED () |
static Attribute | BACKGROUND () |
static Attribute | SYM_STROKE () |
static Attribute | SYM_FILL () |
static Attribute | SYM_PEN () |
static Attribute | ARROW_NORMAL () |
static Attribute | OPAQUE () |
static Attribute | ARROW_ARC () |
static Attribute | ARROW_FARC () |
static Attribute | ARROW_PTARC () |
static Attribute | ARROW_FPTARC () |
static Attribute | makeColor (String str, Attribute deflt) |
static Attribute | makeScalar (String str, Attribute deflt) |
static Attribute | makeDashStyle (String str) |
static Attribute | makeTextSize (String str) |
static Attribute | normal (Kind kind) |
-Friends | |
class | StyleSheet |
An attribute of an Ipe Object.
-An attribute is either an absolute value or a symbolic name that has to be looked up in a StyleSheet.
-All string values are replaced by indices into a Repository (that applies both to symbolic names and to absolute values that are strings). All other values are stored directly inside the attribute, either as a Fixed or a Color.
-There are five different kinds of Attribute objects:
-
-
|
- -inlineexplicit | -
Default constructor.
- -Referenced by Attribute().
- -
-
|
- -explicit | -
Create an attribute with string value.
- -References ipe::Repository::get(), and ipe::Repository::toIndex().
- -
-
|
- -explicit | -
Create an absolute numeric attribute.
- -References ipe::Fixed::internal().
- -
-
|
- -explicit | -
Create an attribute with absolute color.
- -References Attribute(), ipe::Color::iBlue, ipe::Color::iGreen, ipe::Fixed::internal(), and ipe::Color::iRed.
- -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlinestatic | -
Referenced by ipe::Text::getAttribute(), and ipe::Path::getAttribute().
- -
-
|
- -inline | -
Is it symbolic?
- -Referenced by ipe::StyleSheet::add(), ipe::StyleSheet::addEffect(), ipe::StyleSheet::addGradient(), ipe::StyleSheet::addSymbol(), ipe::StyleSheet::addTiling(), ipe::Object::checkSymbol(), ipe::StyleSheet::find(), ipe::Cascade::findDefinition(), ipe::StyleSheet::findEffect(), ipe::StyleSheet::findGradient(), ipe::StyleSheet::findSymbol(), ipe::StyleSheet::findTiling(), ipe::StyleSheet::has(), ipe::Painter::lookup(), ipe::ImlParser::parseStyle(), and ipe::Page::setEffect().
- -
-
|
- -inline | -
Is it an absolute string value?
- -
-
|
- -inline | -
Is it a color?
- -Referenced by ipe::ImlParser::parseStyle().
- -
-
|
- -inline | -
Is it a number?
- -Referenced by ipe::Latex::createLatexSource(), ipe::PdfPainter::doDrawSymbol(), ipe::ImlParser::parseStyle(), and ipe::Text::setAttribute().
- -
-
|
- -inline | -
Is it an enumeration?
- -Referenced by ipe::Text::setAttribute(), ipe::Object::setAttribute(), and ipe::Path::setAttribute().
- -
-
|
- -inline | -
Is it a boolean?
- -
-
|
- -inline | -
Is it the symbolic name "normal"?
- -Referenced by ipe::Path::checkStyle(), ipe::PdfWriter::createPageView(), ipe::PdfPainter::doDrawPath(), ipe::Path::draw(), ipe::PdfPainter::drawAttributes(), ipe::Reference::saveAsXml(), ipe::Group::saveAsXml(), ipe::Path::saveAsXml(), ipe::Painter::setGradient(), and ipe::Painter::setTiling().
- -
-
|
- -inline | -
Return index into Repository.
- -Referenced by ipe::StyleSheet::add(), ipe::StyleSheet::addEffect(), ipe::StyleSheet::addGradient(), ipe::StyleSheet::addSymbol(), ipe::StyleSheet::addTiling(), ipe::PdfPainter::doDrawPath(), ipe::PdfPainter::doDrawSymbol(), ipe::PdfPainter::drawAttributes(), ipe::StyleSheet::find(), ipe::StyleSheet::findEffect(), ipe::StyleSheet::findGradient(), ipe::StyleSheet::findSymbol(), ipe::StyleSheet::findTiling(), ipe::StyleSheet::has(), and ipe::StyleSheet::remove().
- -
-
|
- -inline | -
String Attribute::string | -( | -) | -const | -
Return string representing the attribute.
- -References ipe::Repository::get(), and ipe::Repository::toString().
- -Referenced by ipe::Latex::createLatexSource(), ipe::Page::saveAsXml(), ipe::Image::saveAsXml(), ipe::Text::saveAsXml(), ipe::Reference::saveAsXml(), ipe::Group::saveAsXml(), ipe::Path::saveAsXml(), ipe::AttributeMap::saveAsXml(), ipe::Painter::setDashStyle(), and ipe::Reference::setName().
- -Fixed Attribute::number | -( | -) | -const | -
Return value of absolute numeric attribute.
- -References ipe::Fixed::fromInternal().
- -Referenced by ipe::Latex::createLatexSource(), ipe::PdfPainter::doDrawSymbol(), ipe::Reference::draw(), ipe::Path::drawArrow(), ipe::Reference::drawSimple(), ipe::Painter::Painter(), ipe::ImlParser::parseStyle(), ipe::Text::setAttribute(), ipe::Painter::setOpacity(), ipe::Painter::setPen(), ipe::Painter::setStrokeOpacity(), and ipe::Painter::setSymPen().
- -Color Attribute::color | -( | -) | -const | -
Return absolute color.
- -References ipe::Fixed::fromInternal(), ipe::Color::iBlue, ipe::Color::iGreen, and ipe::Color::iRed.
- -Referenced by ipe::Painter::setFill(), ipe::Painter::setStroke(), ipe::Painter::setSymFill(), and ipe::Painter::setSymStroke().
- -
-
|
- -inline | -
Referenced by ipe::Text::setAttribute(), and ipe::Path::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Text::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Text::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Path::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Path::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Path::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Object::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Object::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Path::setAttribute().
- -
-
|
- -inline | -
-
|
- -inline | -
Are two values equal (only compares index!)
- -
-
|
- -inline | -
Are two values different (only compares index!)
- -
-
|
- -inlinestatic | -
Create absolute black color.
- -Referenced by ipe::AttributeMap::add(), normal(), ipe::ImlParser::parseStyle(), ipe::Reference::Reference(), ipe::Reference::saveAsXml(), and ipe::Text::Text().
- -
-
|
- -inlinestatic | -
Create absolute white color.
- -Referenced by ipe::Reference::Reference(), and ipe::Reference::saveAsXml().
- -
-
|
- -inlinestatic | -
Create absolute number one.
- -Referenced by normal(), ipe::Reference::Reference(), and ipe::Reference::saveAsXml().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "normal".
- -Referenced by ipe::AttributeMap::add(), ipe::Cascade::allNames(), ipe::Group::Group(), makeDashStyle(), makeTextSize(), normal(), ipe::Painter::Painter(), ipe::ImlParser::parseStyle(), ipe::Reference::Reference(), ipe::Text::saveAsXml(), ipe::Text::setAttribute(), ipe::Path::setGradient(), ipe::Painter::setGradient(), ipe::Page::setLayerOf(), ipe::Text::setTextType(), ipe::Path::setTiling(), ipe::Painter::setTiling(), and ipe::Text::Text().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "undefined".
- -Referenced by ipe::StyleSheet::find(), ipe::Cascade::find(), and ipe::Object::getAttribute().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "Background".
- -Referenced by ipe::PdfWriter::createPageView(), ipe::CanvasBase::drawObjects(), ipe::Thumbnail::saveRender(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "sym-stroke".
- -Referenced by ipe::Painter::setFill(), ipe::Painter::setStroke(), ipe::Painter::setSymFill(), and ipe::Painter::setSymStroke().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "sym-fill".
- -Referenced by ipe::Painter::setFill(), ipe::Painter::setStroke(), ipe::Painter::setSymFill(), and ipe::Painter::setSymStroke().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "sym-pen".
- -Referenced by ipe::Painter::setPen(), and ipe::Painter::setSymPen().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "arrow/normal(spx)".
- -Referenced by ipe::AttributeMap::add().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "opaque".
- -Referenced by ipe::AttributeMap::add(), ipe::Image::Image(), ipe::Image::saveAsXml(), ipe::Text::saveAsXml(), ipe::Path::saveAsXml(), and ipe::Text::Text().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "arrow/arc(spx)".
- -
-
|
- -inlinestatic | -
Create symbolic attribute "arrow/farc(spx)".
- -Referenced by ipe::Path::drawArrow().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "arrow/ptarc(spx)".
- -Referenced by ipe::Path::drawArrow().
- -
-
|
- -inlinestatic | -
Create symbolic attribute "arrow/fptarc(spx)".
- -Referenced by ipe::Path::drawArrow().
- -
-
|
- -inline | -
Is it one of the symbolic attributes "arrow/*arc(spc)"?
- -Referenced by ipe::Path::draw(), and ipe::Path::drawArrow().
- -bool Attribute::isMidArrow | -( | -) | -const | -
Is it a symbolic arrow name of the form "arrow/mid-*"?
- -Referenced by ipe::Path::setArrow(), ipe::Path::setAttribute(), and ipe::Path::setRarrow().
- -
-
|
- -static | -
Make a color attribute.
-If the string starts with a letter, make a symbolic attribute. Otherwise, it's either a single gray value (0.0 to 1.0), or the three red, green, and blue components, separated by spaces. If it's an empty string, return deflt.
- -References ipe::Color::Color(), and ipe::String::empty().
- -Referenced by ipe::ImlParser::parseStyle(), ipe::Reference::Reference(), and ipe::Text::Text().
- -
-
|
- -static | -
Make a scalar attribute.
-If str is empty, simply return deflt. If str starts with a letter, make a symbolic attribute. Otherwise, must be a number.
- -References ipe::String::empty().
- -Referenced by ipe::ImlParser::parseStyle(), and ipe::Reference::Reference().
- -Construct dash style attribute from string.
-Strings starting with '[' create an absolute dash style. The empty string is equivalent to 'normal'. Any other string creates a symbolic dash style.
- -References ipe::String::empty(), and NORMAL().
- -Referenced by ipe::ImlParser::parseStyle().
- -Construct text size attribute from string.
-String starting with digit creates a numeric absolute value, string starting with letter creates symbolic text size, anything else creates absolute (string) text size. The empty string is treated like "normal".
- -References ipe::String::empty(), and NORMAL().
- -Referenced by ipe::ImlParser::parseStyle(), and ipe::Text::Text().
- -Return a standard value for attribute of kind.
-The value is used if the stylesheet doesn't define a symbolic attribute used in the document.
- -References BLACK(), ipe::EAngleSize, ipe::EArrowSize, ipe::EColor, ipe::EDashStyle, ipe::EGridSize, ipe::EOpacity, ipe::EPen, ipe::ESymbolSize, ipe::ETextSize, ipe::ETextStretch, ipe::ETextStyle, NORMAL(), and ONE().
- -Referenced by ipe::Cascade::find().
- -
-
|
- -friend | -
- Ipelib
-
- |
-
#include <ipeattributes.h>
-Public Member Functions | |
int | count () const noexcept |
Attribute | map (Kind kind, Attribute sym) const |
void | saveAsXml (Stream &stream) const |
void | add (const AttributeMapping &map) |
-Public Attributes | |
std::vector< AttributeMapping > | iMap |
-
|
- -inlinenoexcept | -
Referenced by ipe::Page::saveAsXml().
- -Attribute AttributeMap::map | -( | -Kind | -kind, | -
- | - | Attribute | -sym | -
- | ) | -const | -
Map the given symbolic attribute sym. Returns sym if there is no mapping.
- -Referenced by ipe::Painter::doDrawSymbol(), and ipe::Painter::lookup().
- -void AttributeMap::saveAsXml | -( | -Stream & | -stream | ) | -const | -
Save map in XML format.
- -References ipe::AttributeMapping::from, ipe::AttributeMapping::kind, ipe::kind_names, ipe::size(), ipe::Attribute::string(), and ipe::AttributeMapping::to.
- -Referenced by ipe::Page::saveAsXml().
- -void AttributeMap::add | -( | -const AttributeMapping & | -map | ) | -- |
Add a mapping.
- -References ipe::AllAttributes::AllAttributes(), ipe::Attribute::ARROW_NORMAL(), ipe::Attribute::BLACK(), ipe::EAlignBaseline, ipe::EAlignLeft, ipe::EBSpline, ipe::EDefaultCap, ipe::EDefaultJoin, ipe::EDefaultRule, ipe::ENoPin, ipe::EStrokedOnly, ipe::ETransformationsAffine, ipe::Attribute::NORMAL(), and ipe::Attribute::OPAQUE().
- -Referenced by ipe::ImlParser::parseView().
- -std::vector<AttributeMapping> ipe::AttributeMap::iMap | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::AttributeMap, including all inherited members.
-add(const AttributeMapping &map) | ipe::AttributeMap | |
count() const noexcept | ipe::AttributeMap | inline |
iMap | ipe::AttributeMap | |
map(Kind kind, Attribute sym) const | ipe::AttributeMap | |
saveAsXml(Stream &stream) const | ipe::AttributeMap |
- Ipelib
-
- |
-
This is the complete list of members for ipe::Attribute, including all inherited members.
-ARROW_ARC() | ipe::Attribute | inlinestatic |
ARROW_FARC() | ipe::Attribute | inlinestatic |
ARROW_FPTARC() | ipe::Attribute | inlinestatic |
ARROW_NORMAL() | ipe::Attribute | inlinestatic |
ARROW_PTARC() | ipe::Attribute | inlinestatic |
Attribute() | ipe::Attribute | inlineexplicit |
Attribute(bool symbolic, String name) | ipe::Attribute | explicit |
Attribute(Fixed value) | ipe::Attribute | explicit |
Attribute(Color color) | ipe::Attribute | explicit |
Attribute(THorizontalAlignment align) | ipe::Attribute | inlineexplicit |
Attribute(TVerticalAlignment align) | ipe::Attribute | inlineexplicit |
Attribute(TLineJoin join) | ipe::Attribute | inlineexplicit |
Attribute(TLineCap cap) | ipe::Attribute | inlineexplicit |
Attribute(TFillRule rule) | ipe::Attribute | inlineexplicit |
Attribute(TPinned pin) | ipe::Attribute | inlineexplicit |
Attribute(TTransformations trans) | ipe::Attribute | inlineexplicit |
Attribute(TPathMode pm) | ipe::Attribute | inlineexplicit |
Attribute(TSplineType st) | ipe::Attribute | inlineexplicit |
BACKGROUND() | ipe::Attribute | inlinestatic |
BLACK() | ipe::Attribute | inlinestatic |
Boolean(bool flag) | ipe::Attribute | inlinestatic |
boolean() const | ipe::Attribute | inline |
color() const | ipe::Attribute | |
fillRule() const | ipe::Attribute | inline |
horizontalAlignment() const | ipe::Attribute | inline |
index() const | ipe::Attribute | inline |
internal() const | ipe::Attribute | inline |
isArcArrow() const | ipe::Attribute | inline |
isBoolean() const | ipe::Attribute | inline |
isColor() const | ipe::Attribute | inline |
isEnum() const | ipe::Attribute | inline |
isMidArrow() const | ipe::Attribute | |
isNormal() const | ipe::Attribute | inline |
isNumber() const | ipe::Attribute | inline |
isString() const | ipe::Attribute | inline |
isSymbolic() const | ipe::Attribute | inline |
lineCap() const | ipe::Attribute | inline |
lineJoin() const | ipe::Attribute | inline |
makeColor(String str, Attribute deflt) | ipe::Attribute | static |
makeDashStyle(String str) | ipe::Attribute | static |
makeScalar(String str, Attribute deflt) | ipe::Attribute | static |
makeTextSize(String str) | ipe::Attribute | static |
normal(Kind kind) | ipe::Attribute | static |
NORMAL() | ipe::Attribute | inlinestatic |
number() const | ipe::Attribute | |
ONE() | ipe::Attribute | inlinestatic |
OPAQUE() | ipe::Attribute | inlinestatic |
operator!=(const Attribute &rhs) const | ipe::Attribute | inline |
operator==(const Attribute &rhs) const | ipe::Attribute | inline |
pathMode() const | ipe::Attribute | inline |
pinned() const | ipe::Attribute | inline |
splineType() const | ipe::Attribute | inline |
string() const | ipe::Attribute | |
StyleSheet class | ipe::Attribute | friend |
SYM_FILL() | ipe::Attribute | inlinestatic |
SYM_PEN() | ipe::Attribute | inlinestatic |
SYM_STROKE() | ipe::Attribute | inlinestatic |
transformations() const | ipe::Attribute | inline |
UNDEFINED() | ipe::Attribute | inlinestatic |
verticalAlignment() const | ipe::Attribute | inline |
WHITE() | ipe::Attribute | inlinestatic |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::DataSource.
--Public Member Functions | |
Base64Source (DataSource &source) | |
virtual int | getChar () |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
virtual int | length () const |
virtual void | setPosition (int pos) |
virtual int | position () const |
Filter source adding Base64 decoding.
-Base64Source::Base64Source | -( | -DataSource & | -source | ) | -- |
-
|
- -virtual | -
Get one more character, or EOF.
- -Implements ipe::DataSource.
- -References ipe::DataSource::getChar().
- -Referenced by ipe::Bitmap::Bitmap().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Base64Source, including all inherited members.
-Base64Source(DataSource &source) | ipe::Base64Source | |
getChar() | ipe::Base64Source | virtual |
length() const | ipe::DataSource | virtual |
position() const | ipe::DataSource | virtual |
setPosition(int pos) | ipe::DataSource | virtual |
~DataSource()=0 | ipe::DataSource | pure virtual |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::Stream.
--Public Member Functions | |
Base64Stream (Stream &stream) | |
virtual void | putChar (char ch) |
virtual void | close () |
Public Member Functions inherited from ipe::Stream | |
virtual | ~Stream () |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
Filter stream adding Base64 encoding.
-Base64Stream::Base64Stream | -( | -Stream & | -stream | ) | -- |
-
|
- -virtual | -
Output character.
- -Implements ipe::Stream.
- -References ipe::Stream::putChar(), and ipe::Stream::putCString().
- -Referenced by ipe::Bitmap::saveAsXml().
- -
-
|
- -virtual | -
Close the stream. No more writing allowed!
- -Reimplemented from ipe::Stream.
- -References ipe::Stream::close(), and ipe::Stream::putCString().
- -Referenced by ipe::Bitmap::saveAsXml().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Base64Stream, including all inherited members.
-Base64Stream(Stream &stream) | ipe::Base64Stream | |
close() | ipe::Base64Stream | virtual |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch) | ipe::Base64Stream | virtual |
putCString(const char *s) | ipe::Stream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::Stream | virtual |
putString(String s) | ipe::Stream | virtual |
putXmlString(String s) | ipe::Stream | |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::Painter.
--Public Member Functions | |
BBoxPainter (const Cascade *style) | |
Rect | bbox () const |
Public Member Functions inherited from ipe::Painter | |
Painter (const Cascade *style) | |
virtual | ~Painter () |
void | setAttributeMap (const AttributeMap *map) |
Attribute | lookup (Kind kind, Attribute sym) const |
void | transform (const Matrix &m) |
void | untransform (TTransformations trans) |
void | translate (const Vector &v) |
void | push () |
void | pop () |
void | pushMatrix () |
void | popMatrix () |
void | newPath () |
void | moveTo (const Vector &v) |
void | lineTo (const Vector &v) |
void | curveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
void | curveTo (const Bezier &bezier) |
void | rect (const Rect &re) |
void | drawEllipse () |
void | drawArc (const Arc &arc) |
void | closePath () |
void | drawPath (TPathMode mode) |
void | drawBitmap (Bitmap bitmap) |
void | drawText (const Text *text) |
void | drawSymbol (Attribute symbol) |
void | addClipPath () |
void | setStroke (Attribute color) |
void | setFill (Attribute color) |
void | setPen (Attribute pen) |
void | setDashStyle (Attribute dash) |
void | setLineCap (TLineCap cap) |
void | setLineJoin (TLineJoin join) |
void | setFillRule (TFillRule rule) |
void | setSymStroke (Attribute color) |
void | setSymFill (Attribute color) |
void | setSymPen (Attribute wid) |
void | setOpacity (Attribute opaq) |
void | setStrokeOpacity (Attribute opaq) |
void | setTiling (Attribute til) |
void | setGradient (Attribute grad) |
const Cascade * | cascade () const |
Color | stroke () const |
Color | fill () const |
const Matrix & | matrix () const |
Fixed | pen () const |
String | dashStyle () const |
void | dashStyle (std::vector< double > &dashes, double &offset) const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
Color | symStroke () const |
Color | symFill () const |
Fixed | symPen () const |
Fixed | opacity () const |
Fixed | strokeOpacity () const |
Attribute | tiling () const |
Attribute | gradient () const |
const State & | state () const |
void | setState (const State &state) |
-Protected Member Functions | |
virtual void | doPush () |
virtual void | doPop () |
virtual void | doNewPath () |
virtual void | doMoveTo (const Vector &v) |
virtual void | doLineTo (const Vector &v) |
virtual void | doCurveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
virtual void | doDrawPath (TPathMode mode) |
virtual void | doDrawBitmap (Bitmap bitmap) |
virtual void | doDrawText (const Text *text) |
virtual void | doAddClipPath () |
Protected Member Functions inherited from ipe::Painter | |
virtual void | doDrawArc (const Arc &arc) |
virtual void | doClosePath () |
virtual void | doDrawSymbol (Attribute symbol) |
void | drawArcAsBezier (double alpha) |
-Additional Inherited Members | |
Protected Attributes inherited from ipe::Painter | |
std::list< State > | iState |
std::list< Matrix > | iMatrix |
const Cascade * | iCascade |
const AttributeMap * | iAttributeMap |
int | iInPath |
Paint objects using this painter to compute an accurate bounding box.
-The Object::bbox member function computes a bounding box useful for distance calculations and optimizations. To find a bounding box that is accurate for the actual drawn object, paint the object using a BBoxPainter, and retrieve the box with bbox.
-BBoxPainter::BBoxPainter | -( | -const Cascade * | -style | ) | -- |
-
|
- -inline | -
Referenced by ipe::Page::pageBBox(), and ipe::Page::viewBBox().
- -
-
|
- -protectedvirtual | -
Perform graphics state push on output medium.
- -Reimplemented from ipe::Painter.
- -
-
|
- -protectedvirtual | -
Perform graphics state pop on output medium.
- -Reimplemented from ipe::Painter.
- -
-
|
- -protectedvirtual | -
Perform new path operator.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::clear().
- -
-
|
- -protectedvirtual | -
Perform moveto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::addPoint().
- -
-
|
- -protectedvirtual | -
Perform lineto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::addPoint().
- -
-
|
- -protectedvirtual | -
Perform curveto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::addPoint(), ipe::Bezier::bbox(), ipe::Rect::bottomLeft(), and ipe::Rect::topRight().
- -
-
|
- -protectedvirtual | -
Actually draw the path.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::addPoint(), ipe::Rect::bottomLeft(), ipe::Rect::clipTo(), ipe::Rect::isEmpty(), ipe::Painter::pen(), ipe::Fixed::toDouble(), and ipe::Rect::topRight().
- -
-
|
- -protectedvirtual | -
Draw a bitmap.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::addPoint(), ipe::Rect::addRect(), ipe::Rect::clipTo(), and ipe::Painter::matrix().
- -
-
|
- -protectedvirtual | -
Draw a text object.
- -Reimplemented from ipe::Painter.
- -References ipe::Rect::addPoint(), ipe::Rect::addRect(), ipe::Rect::bottomLeft(), ipe::Painter::cascade(), ipe::Rect::clipTo(), ipe::Cascade::findTextPadding(), ipe::TextPadding::iBottom, ipe::TextPadding::iLeft, ipe::TextPadding::iRight, ipe::TextPadding::iTop, ipe::Painter::matrix(), ipe::Rect::topRight(), ipe::Text::totalHeight(), and ipe::Text::width().
- -
-
|
- -protectedvirtual | -
Add a clip path.
- -Reimplemented from ipe::Painter.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::BBoxPainter, including all inherited members.
-addClipPath() | ipe::Painter | |
bbox() const | ipe::BBoxPainter | inline |
BBoxPainter(const Cascade *style) | ipe::BBoxPainter | |
cascade() const | ipe::Painter | inline |
closePath() | ipe::Painter | |
curveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::Painter | |
curveTo(const Bezier &bezier) | ipe::Painter | inline |
dashStyle() const | ipe::Painter | inline |
dashStyle(std::vector< double > &dashes, double &offset) const | ipe::Painter | |
doAddClipPath() | ipe::BBoxPainter | protectedvirtual |
doClosePath() | ipe::Painter | protectedvirtual |
doCurveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::BBoxPainter | protectedvirtual |
doDrawArc(const Arc &arc) | ipe::Painter | protectedvirtual |
doDrawBitmap(Bitmap bitmap) | ipe::BBoxPainter | protectedvirtual |
doDrawPath(TPathMode mode) | ipe::BBoxPainter | protectedvirtual |
doDrawSymbol(Attribute symbol) | ipe::Painter | protectedvirtual |
doDrawText(const Text *text) | ipe::BBoxPainter | protectedvirtual |
doLineTo(const Vector &v) | ipe::BBoxPainter | protectedvirtual |
doMoveTo(const Vector &v) | ipe::BBoxPainter | protectedvirtual |
doNewPath() | ipe::BBoxPainter | protectedvirtual |
doPop() | ipe::BBoxPainter | protectedvirtual |
doPush() | ipe::BBoxPainter | protectedvirtual |
drawArc(const Arc &arc) | ipe::Painter | |
drawArcAsBezier(double alpha) | ipe::Painter | protected |
drawBitmap(Bitmap bitmap) | ipe::Painter | |
drawEllipse() | ipe::Painter | |
drawPath(TPathMode mode) | ipe::Painter | |
drawSymbol(Attribute symbol) | ipe::Painter | |
drawText(const Text *text) | ipe::Painter | |
fill() const | ipe::Painter | inline |
fillRule() const | ipe::Painter | inline |
gradient() const | ipe::Painter | inline |
iAttributeMap | ipe::Painter | protected |
iCascade | ipe::Painter | protected |
iInPath | ipe::Painter | protected |
iMatrix | ipe::Painter | protected |
iState | ipe::Painter | protected |
lineCap() const | ipe::Painter | inline |
lineJoin() const | ipe::Painter | inline |
lineTo(const Vector &v) | ipe::Painter | |
lookup(Kind kind, Attribute sym) const | ipe::Painter | |
matrix() const | ipe::Painter | inline |
moveTo(const Vector &v) | ipe::Painter | |
newPath() | ipe::Painter | |
opacity() const | ipe::Painter | inline |
Painter(const Cascade *style) | ipe::Painter | |
pen() const | ipe::Painter | inline |
pop() | ipe::Painter | |
popMatrix() | ipe::Painter | |
push() | ipe::Painter | |
pushMatrix() | ipe::Painter | |
rect(const Rect &re) | ipe::Painter | |
setAttributeMap(const AttributeMap *map) | ipe::Painter | |
setDashStyle(Attribute dash) | ipe::Painter | |
setFill(Attribute color) | ipe::Painter | |
setFillRule(TFillRule rule) | ipe::Painter | |
setGradient(Attribute grad) | ipe::Painter | |
setLineCap(TLineCap cap) | ipe::Painter | |
setLineJoin(TLineJoin join) | ipe::Painter | |
setOpacity(Attribute opaq) | ipe::Painter | |
setPen(Attribute pen) | ipe::Painter | |
setState(const State &state) | ipe::Painter | |
setStroke(Attribute color) | ipe::Painter | |
setStrokeOpacity(Attribute opaq) | ipe::Painter | |
setSymFill(Attribute color) | ipe::Painter | |
setSymPen(Attribute wid) | ipe::Painter | |
setSymStroke(Attribute color) | ipe::Painter | |
setTiling(Attribute til) | ipe::Painter | |
state() const | ipe::Painter | inline |
stroke() const | ipe::Painter | inline |
strokeOpacity() const | ipe::Painter | inline |
symFill() const | ipe::Painter | inline |
symPen() const | ipe::Painter | inline |
symStroke() const | ipe::Painter | inline |
tiling() const | ipe::Painter | inline |
transform(const Matrix &m) | ipe::Painter | |
translate(const Vector &v) | ipe::Painter | |
untransform(TTransformations trans) | ipe::Painter | |
~Painter() | ipe::Painter | virtual |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Bezier () | |
Bezier (const Vector &p0, const Vector &p1, const Vector &p2, const Vector &p3) | |
Vector | point (double t) const |
Vector | tangent (double t) const |
double | distance (const Vector &v, double bound) |
bool | straight (double precision) const |
void | subdivide (Bezier &l, Bezier &r) const |
void | approximate (double precision, std::vector< Vector > &result) const |
Rect | bbox () const |
bool | snap (const Vector &v, double &t, Vector &pos, double &bound) const |
void | intersect (const Line &l, std::vector< Vector > &result) const |
void | intersect (const Segment &l, std::vector< Vector > &result) const |
void | intersect (const Bezier &b, std::vector< Vector > &result) const |
-Static Public Member Functions | |
static Bezier | quadBezier (const Vector &p0, const Vector &p1, const Vector &p2) |
static void | oldSpline (int n, const Vector *v, std::vector< Bezier > &result) |
static void | spline (int n, const Vector *v, std::vector< Bezier > &result) |
static void | cardinalSpline (int n, const Vector *v, double tension, std::vector< Bezier > &result) |
static void | spiroSpline (int n, const Vector *v, std::vector< Bezier > &result) |
static void | closedSpline (int n, const Vector *v, std::vector< Bezier > &result) |
-Public Attributes | |
Vector | iV [4] |
A cubic Bezier spline.
-
-
|
- -inline | -
Default constructor, uninitialized curve.
- -
-
|
- -inline | -
Constructor with four control points.
- -Vector Bezier::point | -( | -double | -t | ) | -const | -
Return point on curve with parameter t (from 0.0 to 1.0).
- -Referenced by snap().
- -Vector Bezier::tangent | -( | -double | -t | ) | -const | -
Return tangent direction of curve at parameter t (from 0.0 to 1.0).
-The returned vector is not normalized.
- -Referenced by ipe::Snap::setEdge().
- -double Bezier::distance | -( | -const Vector & | -v, | -
- | - | double | -bound | -
- | ) | -- |
Return distance to Bezier spline.
-But may just return bound if actual distance is larger. The Bezier spline is approximated to a precision of 1.0, and the distance to the approximation is returned.
- -References ipe::Rect::addPoint(), and ipe::Rect::certainClearance().
- -bool Bezier::straight | -( | -double | -precision | ) | -const | -
Returns true if the Bezier curve is nearly identical to the line segment iV[0]..iV[3].
- -References ipe::Line::distance(), and ipe::Line::through().
- -Referenced by ipe::Arc::intersect(), and snap().
- -Subdivide this Bezier curve in the middle.
- -References iV.
- -Referenced by ipe::Arc::intersect(), and snap().
- -void Bezier::approximate | -( | -double | -precision, | -
- | - | std::vector< Vector > & | -result | -
- | ) | -const | -
Approximate by a polygonal chain.
-result must be empty when calling this.
- -References approximate().
- -Referenced by approximate().
- -Rect Bezier::bbox | -( | -) | -const | -
Return a tight bounding box (accurate to within 0.5).
- -References ipe::Rect::addPoint(), ipe::Rect::bottomLeft(), and ipe::Rect::topRight().
- -Referenced by ipe::BBoxPainter::doCurveTo().
- -bool Bezier::snap | -( | -const Vector & | -v, | -
- | - | double & | -t, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Find (approximately) nearest point on Bezier spline.
-Find point on spline nearest to v, but only if it is closer than bound. If a point is found, sets t to the parameter value and pos to the actual point, and returns true.
- -References ipe::Rect::addPoint(), ipe::Rect::certainClearance(), ipe::Rect::intersects(), ipe::Segment::intersects(), ipe::Matrix::inverse(), iV, point(), ipe::Segment::project(), ipe::size(), ipe::Vector::snap(), snap(), straight(), and subdivide().
- -Referenced by ipe::Snap::setEdge(), and snap().
- -
-
|
- -static | -
Convert a quadratic Bezier-spline to a cubic one.
-The quadratic Bezier-spline with control points p0, p1, p2 is identical to the cubic Bezier-spline with control points q0 = p0, q1 = (2p1 + p0)/3, q2 = (2p1 + p2)/3, q3 = p2.
- -Referenced by cardinalSpline().
- -
-
|
- -static | -
Convert an old-style Ipe B-spline to a series of Bezier splines.
-For some reason lost in the mist of time, this was the definition of splines in Ipe for many years. It doesn't use knots. The first and last control point are simply given multiplicity 3.
-Bezier splines are appended to result.
- -Referenced by ipe::CurveSegment::beziers().
- -
-
|
- -static | -
Convert a clamped uniform B-spline to a series of Bezier splines.
-See Thomas Sederberg, Computer-Aided Geometric Design, Chapter 6.
-In polar coordinates, a control point is defined by three knots, so n control points need n + 2 knots. To clamp the spline to the first and last control point, the first and last knot are repeated three times. This leads to k knot intervals and the knot sequence [0, 0, 0, 1, 2, 3, 4, 5, 6, ..., k-2, k-1, k, k, k] There are k + 5 = n + 2 knots in this sequence, so k = n-3 is the number of knot intervals and therefore the number of output Bezier curves.
-If n = 4, the knot sequence is [0, 0, 0, 1, 1, 1] and the result is simply the Bezier curve on the four control points.
-When n in {2, 3}, returns a single Bezier curve that is a segment or quadratic Bezier spline. This is different from the behaviour of the "old" Ipe splines.
-Bezier splines are appended to result.
- -Referenced by ipe::CurveSegment::beziers(), and spiroSpline().
- -
-
|
- -static | -
Convert a cardinal spline to a series of Bezier splines.
-Bezier splines are appended to result.
- -References quadBezier().
- -Referenced by ipe::CurveSegment::beziers().
- -
-
|
- -static | -
References spline(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Curve::appendSpiroSpline().
- -
-
|
- -static | -
Convert a closed uniform cubic B-spline to a series of Bezier splines.
-Bezier splines are appended to result.
- -Referenced by ipe::ClosedSpline::beziers().
- -void Bezier::intersect | -( | -const Line & | -l, | -
- | - | std::vector< Vector > & | -result | -
- | ) | -const | -
Compute intersection points of Bezier with Line.
- -References intersect(), ipe::Segment::intersects(), and ipe::Line::side().
- -Referenced by intersect().
- -void Bezier::intersect | -( | -const Segment & | -l, | -
- | - | std::vector< Vector > & | -result | -
- | ) | -const | -
Compute intersection points of Bezier with Segment.
- -References ipe::Segment::iP, and ipe::Segment::iQ.
- -Vector ipe::Bezier::iV[4] | -
Referenced by ipe::Painter::curveTo(), ipe::Arc::intersect(), ipe::Matrix::operator*(), snap(), and subdivide().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Bezier, including all inherited members.
-approximate(double precision, std::vector< Vector > &result) const | ipe::Bezier | |
bbox() const | ipe::Bezier | |
Bezier() | ipe::Bezier | inline |
Bezier(const Vector &p0, const Vector &p1, const Vector &p2, const Vector &p3) | ipe::Bezier | inline |
cardinalSpline(int n, const Vector *v, double tension, std::vector< Bezier > &result) | ipe::Bezier | static |
closedSpline(int n, const Vector *v, std::vector< Bezier > &result) | ipe::Bezier | static |
distance(const Vector &v, double bound) | ipe::Bezier | |
intersect(const Line &l, std::vector< Vector > &result) const | ipe::Bezier | |
intersect(const Segment &l, std::vector< Vector > &result) const | ipe::Bezier | |
intersect(const Bezier &b, std::vector< Vector > &result) const | ipe::Bezier | |
iV | ipe::Bezier | |
oldSpline(int n, const Vector *v, std::vector< Bezier > &result) | ipe::Bezier | static |
point(double t) const | ipe::Bezier | |
quadBezier(const Vector &p0, const Vector &p1, const Vector &p2) | ipe::Bezier | static |
snap(const Vector &v, double &t, Vector &pos, double &bound) const | ipe::Bezier | |
spiroSpline(int n, const Vector *v, std::vector< Bezier > &result) | ipe::Bezier | static |
spline(int n, const Vector *v, std::vector< Bezier > &result) | ipe::Bezier | static |
straight(double precision) const | ipe::Bezier | |
subdivide(Bezier &l, Bezier &r) const | ipe::Bezier | |
tangent(double t) const | ipe::Bezier |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::Visitor.
--Public Member Functions | |
void | scanPage (const Page *page) |
virtual void | visitGroup (const Group *obj) |
virtual void | visitImage (const Image *obj) |
Public Member Functions inherited from ipe::Visitor | |
virtual | ~Visitor () |
virtual void | visitPath (const Path *obj) |
virtual void | visitText (const Text *obj) |
virtual void | visitReference (const Reference *obj) |
-Public Attributes | |
std::vector< Bitmap > | iBitmaps |
A visitor that recursively scans objects and collects all bitmaps.
-void BitmapFinder::scanPage | -( | -const Page * | -page | ) | -- |
References ipe::Object::accept(), ipe::Page::count(), and ipe::Page::object().
- -Referenced by ipe::PdfWriter::createPageView(), ipe::Document::findBitmaps(), and ipe::Page::saveAsIpePage().
- -
-
|
- -virtual | -
Called on an Group object.
- -Reimplemented from ipe::Visitor.
- -References ipe::Group::begin(), and ipe::Group::end().
- -
-
|
- -virtual | -
Called on an Image object.
- -Reimplemented from ipe::Visitor.
- -References ipe::Image::bitmap(), and iBitmaps.
- -std::vector<Bitmap> ipe::BitmapFinder::iBitmaps | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::BitmapFinder, including all inherited members.
-iBitmaps | ipe::BitmapFinder | |
scanPage(const Page *page) | ipe::BitmapFinder | |
visitGroup(const Group *obj) | ipe::BitmapFinder | virtual |
visitImage(const Image *obj) | ipe::BitmapFinder | virtual |
visitPath(const Path *obj) | ipe::Visitor | virtual |
visitReference(const Reference *obj) | ipe::Visitor | virtual |
visitText(const Text *obj) | ipe::Visitor | virtual |
~Visitor() | ipe::Visitor | virtual |
- Ipelib
-
- |
-
#include <ipebitmap.h>
-Public Types | |
enum | Flags { - ERGB = 0x01, -EAlpha = 0x02, -EDCT = 0x04, -EInflate = 0x08, - - ENative = 0x10 - - } |
-Public Member Functions | |
Bitmap () | |
Bitmap (int width, int height, uint32_t flags, Buffer data) | |
Bitmap (const XmlAttributes &attr, String data) | |
Bitmap (const XmlAttributes &attr, Buffer data, Buffer smask) | |
Bitmap (const Bitmap &rhs) | |
~Bitmap () | |
Bitmap & | operator= (const Bitmap &rhs) |
void | saveAsXml (Stream &stream, int id, int pdfObjNum=-1) const |
bool | isNull () const |
bool | equal (Bitmap rhs) const |
int | width () const |
int | height () const |
bool | isJpeg () const |
bool | isGray () const |
bool | hasAlpha () const |
int | colorKey () const |
Buffer | pixelData () |
int | objNum () const |
void | setObjNum (int objNum) const |
std::pair< Buffer, Buffer > | embed () const |
bool | operator== (const Bitmap &rhs) const |
bool | operator!= (const Bitmap &rhs) const |
bool | operator< (const Bitmap &rhs) const |
void | savePixels (const char *fname) |
-Static Public Member Functions | |
static const char * | readJpegInfo (FILE *file, int &width, int &height, Vector &dotsPerInch, uint32_t &flags) |
static Bitmap | readJpeg (const char *fname, Vector &dotsPerInch, const char *&errmsg) |
static Bitmap | readPNG (const char *fname, Vector &dotsPerInch, const char *&errmsg) |
A bitmap.
-Bitmaps are explicitely shared using reference-counting. Copying is cheap, so Bitmap objects are meant to be passed by value.
-The bitmap provides a slot for short-term storage of an "object -number". The PDF embedder, for instance, sets it to the PDF object number when embedding the bitmap, and can reuse it when "drawing" the bitmap.
-enum ipe::Bitmap::Flags | -
Bitmap::Bitmap | -( | -) | -- |
Default constructor constructs null bitmap.
- -Referenced by readJpeg().
- -Bitmap::Bitmap | -( | -int | -width, | -
- | - | int | -height, | -
- | - | uint32_t | -flags, | -
- | - | Buffer | -data | -
- | ) | -- |
Create a new image from given image data.
-If you already have data in native-endian ARGB32 without premultiplication, pass it with flag ENative. Otherwise pass a byte stream and set ERGB and EAlpha correctly: EAlpha: each pixel starts with one byte of alpha channel, ERGB: each pixel has three bytes of R, G, B, in this order, otherwise each pixel has one byte of gray value.
- -References colorKey(), ipe::Buffer::data(), EAlpha, EDCT, EInflate, ENative, ERGB, hasAlpha(), height(), isGray(), isJpeg(), ipe::Buffer::size(), and width().
- -Bitmap::Bitmap | -( | -const XmlAttributes & | -attr, | -
- | - | String | -data | -
- | ) | -- |
Create from XML stream.
- -References ipe::String::data(), ipe::Buffer::data(), ipe::Base64Source::getChar(), ipe::Lex::getHexByte(), height(), isGray(), ipe::String::size(), and width().
- -Bitmap::Bitmap | -( | -const XmlAttributes & | -attr, | -
- | - | Buffer | -data, | -
- | - | Buffer | -smask | -
- | ) | -- |
Create from XML using external raw data.
- -References EAlpha, EDCT, EInflate, ERGB, ipe::Lex::getHexNumber(), ipe::Lex::getInt(), ipe::XmlAttributes::has(), isJpeg(), ipe::String::left(), ipe::String::right(), and ipe::String::size().
- -Bitmap::Bitmap | -( | -const Bitmap & | -rhs | ) | -- |
Copy constructor.
-Since Bitmaps are reference counted, this is very fast.
- -Bitmap::~Bitmap | -( | -) | -- |
Destructor.
- -Assignment operator (takes care of reference counting).
-Very fast.
- -void Bitmap::saveAsXml | -( | -Stream & | -stream, | -
- | - | int | -id, | -
- | - | int | -pdfObjNum = -1 |
-
- | ) | -const | -
Save bitmap in XML stream.
- -References ipe::Base64Stream::close(), colorKey(), embed(), hasAlpha(), height(), isGray(), isJpeg(), ipe::Base64Stream::putChar(), and width().
- -Referenced by ipe::Page::saveAsIpePage(), ipe::Document::saveAsXml(), ipe::StyleSheet::saveAsXml(), and ipe::Page::saveSelection().
- -
-
|
- -inline | -
Is this a null bitmap?
- -Referenced by ipe::ImlParser::parseObject().
- -bool Bitmap::equal | -( | -Bitmap | -rhs | ) | -const | -
-
|
- -inline | -
Return width of pixel array.
- -Referenced by Bitmap(), ipe::CairoPainter::doDrawBitmap(), embed(), pixelData(), readJpeg(), saveAsXml(), savePixels(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Return height of pixel array.
- -Referenced by Bitmap(), ipe::CairoPainter::doDrawBitmap(), embed(), pixelData(), readJpeg(), saveAsXml(), savePixels(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Is this bitmap a JPEG photo?
- -References EDCT.
- -Referenced by Bitmap(), embed(), pixelData(), saveAsXml(), savePixels(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Is the bitmap grayscale?
- -References ERGB.
- -Referenced by Bitmap(), embed(), saveAsXml(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Does the bitmap have transparency?
-Bitmaps with color key will return false here.
- -References EAlpha.
- -Referenced by Bitmap(), embed(), pixelData(), saveAsXml(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Return the color key or -1 if none.
- -Referenced by Bitmap(), pixelData(), saveAsXml(), and ipe::PdfWriter::~PdfWriter().
- -Buffer Bitmap::pixelData | -( | -) | -- |
Return pixels for rendering.
-Returns empty buffer if it cannot decode the bitmap information. Otherwise, returns a buffer of size width() * height() uint32_t's. The data is in cairo ARGB32 format, that is native-endian uint32_t's with premultiplied alpha.
- -References colorKey(), hasAlpha(), height(), isJpeg(), and width().
- -Referenced by ipe::CairoPainter::doDrawBitmap().
- -
-
|
- -inline | -
Return object number of the bitmap.
- -Referenced by ipe::PdfPainter::doDrawBitmap(), ipe::Image::saveAsXml(), ipe::Document::saveAsXml(), ipe::StyleSheet::saveAsXml(), and setObjNum().
- -
-
|
- -inline | -
Set object number of the bitmap.
- -References objNum().
- -Referenced by ipe::Page::saveAsIpePage(), ipe::Page::saveSelection(), and ipe::PdfWriter::~PdfWriter().
- -Create the data to be embedded in an XML or PDF file.
-For Jpeg images, this is simply the bitmap data. For other images, rgb/grayscale data and alpha channel are split and deflated separately.
- -References ipe::Buffer::data(), ipe::DeflateStream::deflate(), hasAlpha(), height(), isGray(), isJpeg(), ipe::Buffer::size(), and width().
- -Referenced by saveAsXml(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Two bitmaps are equal if they share the same data.
- -
-
|
- -inline | -
Two bitmaps are equal if they share the same data.
- -
-
|
- -inline | -
Less operator, to be able to sort bitmaps.
-The checksum is used, when it is equal, the shared address. This guarantees that bitmaps that are == (share their implementation) are next to each other, and blocks of them are next to blocks that are identical in contents.
- -
-
|
- -static | -
Read information about JPEG image from file.
-Returns NULL on success, an error message otherwise. Sets flags to EDCT and possibly ERGB.
- - - -Referenced by readJpeg().
- -
-
|
- -static | -
Read JPEG image from file.
-Returns the image as a DCT-encoded Bitmap. Sets dotsPerInch if the image file contains a resolution, otherwise sets it to (0,0). If reading the file fails, returns a null Bitmap, and sets the error message errmsg.
- -References Bitmap(), ipe::String::data(), ipe::Platform::fopen(), height(), ipe::Platform::readFile(), readJpegInfo(), ipe::String::size(), and width().
- -
-
|
- -static | -
Read PNG image from file.
-Returns the image as a Bitmap. It will be compressed if deflate is set. Sets dotsPerInch if the image file contains a resolution, otherwise sets it to (0,0). If reading the file fails, returns a null Bitmap, and sets the error message errmsg.
- -References ipe::Buffer::data(), EAlpha, ERGB, and ipe::Platform::fopen().
- -void Bitmap::savePixels | -( | -const char * | -fname | ) | -- |
References ipe::Buffer::data(), ipe::Platform::fopen(), height(), isJpeg(), and width().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Bitmap, including all inherited members.
-Bitmap() | ipe::Bitmap | |
Bitmap(int width, int height, uint32_t flags, Buffer data) | ipe::Bitmap | |
Bitmap(const XmlAttributes &attr, String data) | ipe::Bitmap | |
Bitmap(const XmlAttributes &attr, Buffer data, Buffer smask) | ipe::Bitmap | |
Bitmap(const Bitmap &rhs) | ipe::Bitmap | |
colorKey() const | ipe::Bitmap | inline |
EAlpha enum value | ipe::Bitmap | |
EDCT enum value | ipe::Bitmap | |
EInflate enum value | ipe::Bitmap | |
embed() const | ipe::Bitmap | |
ENative enum value | ipe::Bitmap | |
equal(Bitmap rhs) const | ipe::Bitmap | |
ERGB enum value | ipe::Bitmap | |
Flags enum name | ipe::Bitmap | |
hasAlpha() const | ipe::Bitmap | inline |
height() const | ipe::Bitmap | inline |
isGray() const | ipe::Bitmap | inline |
isJpeg() const | ipe::Bitmap | inline |
isNull() const | ipe::Bitmap | inline |
objNum() const | ipe::Bitmap | inline |
operator!=(const Bitmap &rhs) const | ipe::Bitmap | inline |
operator<(const Bitmap &rhs) const | ipe::Bitmap | inline |
operator=(const Bitmap &rhs) | ipe::Bitmap | |
operator==(const Bitmap &rhs) const | ipe::Bitmap | inline |
pixelData() | ipe::Bitmap | |
readJpeg(const char *fname, Vector &dotsPerInch, const char *&errmsg) | ipe::Bitmap | static |
readJpegInfo(FILE *file, int &width, int &height, Vector &dotsPerInch, uint32_t &flags) | ipe::Bitmap | static |
readPNG(const char *fname, Vector &dotsPerInch, const char *&errmsg) | ipe::Bitmap | static |
saveAsXml(Stream &stream, int id, int pdfObjNum=-1) const | ipe::Bitmap | |
savePixels(const char *fname) | ipe::Bitmap | |
setObjNum(int objNum) const | ipe::Bitmap | inline |
width() const | ipe::Bitmap | inline |
~Bitmap() | ipe::Bitmap |
- Ipelib
-
- |
-
#include <ipebase.h>
-Public Member Functions | |
Buffer ()=default | |
Buffer (int size) | |
Buffer (const char *data, int size) | |
char & | operator[] (int index) noexcept |
const char & | operator[] (int index) const noexcept |
int | size () const noexcept |
char * | data () noexcept |
const char * | data () const noexcept |
A memory buffer.
-Can be be copied in constant time, the actual data is shared.
-
-
|
- -explicitdefault | -
Referenced by ipe::Lex::skipWhitespace().
- -
-
|
- -explicit | -
Create buffer of specified size.
- -
-
|
- -explicit | -
Create buffer by copying the data.
- -References ipe::String::size().
- -
-
|
- -inlinenoexcept | -
Character access.
- -
-
|
- -inlinenoexcept | -
Character access (const version).
- -
-
|
- -inlinenoexcept | -
Return size of buffer;.
- -Referenced by ipe::Bitmap::Bitmap(), ipe::DeflateStream::close(), ipe::CairoPainter::doDrawBitmap(), ipe::Bitmap::embed(), ipe::Face::Face(), ipe::Document::formatFromFilename(), ipe::InflateSource::getChar(), ipe::BufferSource::getChar(), ipe::Face::glyphIndex(), ipe::ipeDebugBuffer(), ipe::BufferSource::length(), ipe::DeflateStream::putChar(), ipe::PdfDict::write(), ipe::InflateSource::~InflateSource(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inlinenoexcept | -
Return pointer to buffer data.
- -Referenced by ipe::Bitmap::Bitmap(), ipe::DeflateStream::close(), ipe::DeflateStream::deflate(), ipe::CairoPainter::doDrawBitmap(), ipe::Bitmap::embed(), ipe::Face::Face(), ipe::PageSelector::fill(), ipe::InflateSource::getChar(), ipe::PdfParser::getTrailer(), ipe::Face::glyphIndex(), ipe::InflateSource::InflateSource(), ipe::DeflateStream::putChar(), ipe::Bitmap::readPNG(), ipe::Thumbnail::render(), ipe::PdfThumbnail::render(), ipe::Bitmap::savePixels(), ipe::InflateSource::~InflateSource(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inlinenoexcept | -
Return pointer to buffer data (const version).
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Buffer, including all inherited members.
-Buffer()=default | ipe::Buffer | explicit |
Buffer(int size) | ipe::Buffer | explicit |
Buffer(const char *data, int size) | ipe::Buffer | explicit |
data() noexcept | ipe::Buffer | inline |
data() const noexcept | ipe::Buffer | inline |
operator[](int index) noexcept | ipe::Buffer | inline |
operator[](int index) const noexcept | ipe::Buffer | inline |
size() const noexcept | ipe::Buffer | inline |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherits ipe::DataSource.
--Public Member Functions | |
BufferSource (const Buffer &buffer) | |
virtual int | getChar () override |
virtual int | length () const override |
virtual void | setPosition (int pos) override |
virtual int | position () const override |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
Data source for parsing from a buffer.
-BufferSource::BufferSource | -( | -const Buffer & | -buffer | ) | -- |
-
|
- -overridevirtual | -
Get one more character, or EOF.
- -Implements ipe::DataSource.
- -References ipe::Buffer::size().
- -
-
|
- -overridevirtual | -
Return length of input stream in characters.
-Returns -1 if the stream is not seekable. Calling this function will invalidate the current position.
- -Reimplemented from ipe::DataSource.
- -References ipe::Buffer::size().
- -
-
|
- -overridevirtual | -
Set position in stream.
-Does nothing if the stream is not seekable.
- -Reimplemented from ipe::DataSource.
- -Referenced by ipe::PdfParser::getTrailer().
- -
-
|
- -overridevirtual | -
Return position in stream.
-Returns -1 if the stream is not seekable.
- -Reimplemented from ipe::DataSource.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::BufferSource, including all inherited members.
-BufferSource(const Buffer &buffer) | ipe::BufferSource | |
getChar() override | ipe::BufferSource | virtual |
length() const override | ipe::BufferSource | virtual |
position() const override | ipe::BufferSource | virtual |
setPosition(int pos) override | ipe::BufferSource | virtual |
~DataSource()=0 | ipe::DataSource | pure virtual |
- Ipelib
-
- |
-
#include <ipecairopainter.h>
Inherits ipe::Painter.
--Public Member Functions | |
CairoPainter (const Cascade *sheet, Fonts *fonts, cairo_t *cc, double zoom, bool pretty) | |
virtual | ~CairoPainter () |
void | setDimmed (bool dim) |
void | executeStream (const PdfDict *stream, const PdfDict *resources) |
bool | type3Font () const |
Public Member Functions inherited from ipe::Painter | |
Painter (const Cascade *style) | |
virtual | ~Painter () |
void | setAttributeMap (const AttributeMap *map) |
Attribute | lookup (Kind kind, Attribute sym) const |
void | transform (const Matrix &m) |
void | untransform (TTransformations trans) |
void | translate (const Vector &v) |
void | push () |
void | pop () |
void | pushMatrix () |
void | popMatrix () |
void | newPath () |
void | moveTo (const Vector &v) |
void | lineTo (const Vector &v) |
void | curveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
void | curveTo (const Bezier &bezier) |
void | rect (const Rect &re) |
void | drawEllipse () |
void | drawArc (const Arc &arc) |
void | closePath () |
void | drawPath (TPathMode mode) |
void | drawBitmap (Bitmap bitmap) |
void | drawText (const Text *text) |
void | drawSymbol (Attribute symbol) |
void | addClipPath () |
void | setStroke (Attribute color) |
void | setFill (Attribute color) |
void | setPen (Attribute pen) |
void | setDashStyle (Attribute dash) |
void | setLineCap (TLineCap cap) |
void | setLineJoin (TLineJoin join) |
void | setFillRule (TFillRule rule) |
void | setSymStroke (Attribute color) |
void | setSymFill (Attribute color) |
void | setSymPen (Attribute wid) |
void | setOpacity (Attribute opaq) |
void | setStrokeOpacity (Attribute opaq) |
void | setTiling (Attribute til) |
void | setGradient (Attribute grad) |
const Cascade * | cascade () const |
Color | stroke () const |
Color | fill () const |
const Matrix & | matrix () const |
Fixed | pen () const |
String | dashStyle () const |
void | dashStyle (std::vector< double > &dashes, double &offset) const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
Color | symStroke () const |
Color | symFill () const |
Fixed | symPen () const |
Fixed | opacity () const |
Fixed | strokeOpacity () const |
Attribute | tiling () const |
Attribute | gradient () const |
const State & | state () const |
void | setState (const State &state) |
-Protected Member Functions | |
virtual void | doPush () |
virtual void | doPop () |
virtual void | doMoveTo (const Vector &v) |
virtual void | doLineTo (const Vector &v) |
virtual void | doCurveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
virtual void | doClosePath () |
virtual void | doDrawArc (const Arc &arc) |
virtual void | doAddClipPath () |
virtual void | doDrawPath (TPathMode mode) |
virtual void | doDrawBitmap (Bitmap bitmap) |
virtual void | doDrawText (const Text *text) |
Protected Member Functions inherited from ipe::Painter | |
virtual void | doNewPath () |
virtual void | doDrawSymbol (Attribute symbol) |
void | drawArcAsBezier (double alpha) |
-Additional Inherited Members | |
Protected Attributes inherited from ipe::Painter | |
std::list< State > | iState |
std::list< Matrix > | iMatrix |
const Cascade * | iCascade |
const AttributeMap * | iAttributeMap |
int | iInPath |
Ipe Painter using Cairo and Freetype as a backend.
-This painter draws to a Cairo surface.
-CairoPainter::CairoPainter | -( | -const Cascade * | -sheet, | -
- | - | Fonts * | -fonts, | -
- | - | cairo_t * | -cc, | -
- | - | double | -zoom, | -
- | - | bool | -pretty | -
- | ) | -- |
Construct a painter.
-zoom one means 72 pixels per inch. Set pretty to true to avoid drawing text without Latex.
- -
-
|
- -inlinevirtual | -
-
|
- -inline | -
References executeStream().
- -Referenced by ipe::CanvasBase::drawObjects().
- -void CairoPainter::executeStream | -( | -const PdfDict * | -stream, | -
- | - | const PdfDict * | -resources | -
- | ) | -- |
References ipe::Matrix::a, ipe::CIDType0, ipe::CIDType2, ipe::PdfDict::count(), ipe::PdfString::decode(), ipe::PdfToken::EOp, ipe::PdfParser::eos(), ipe::Painter::fill(), ipe::PdfResourceBase::findResource(), ipe::PdfDict::get(), ipe::Fonts::getFace(), ipe::PdfDict::getInteger(), ipe::PdfDict::getNumber(), ipe::PdfDict::getNumberArray(), ipe::PdfParser::getObject(), ipe::PdfParser::getToken(), ipe::Painter::iCascade, ipe::PdfDict::inflate(), ipe::Matrix::inverse(), ipe::PdfToken::iString, ipe::PdfToken::iType, ipe::PdfDict::key(), ipe::Matrix::linear(), ipe::Painter::matrix(), ipe::PdfObj::name(), ipe::PdfObj::number(), ipe::Painter::opacity(), ipe::PdfObj::repr(), ipe::Fonts::resources(), ipe::String::size(), ipe::PdfObj::string(), ipe::Painter::stroke(), ipe::Fixed::toDouble(), ipe::PdfParser::token(), ipe::Face::type(), ipe::Type3, ipe::PdfNumber::value(), ipe::PdfName::value(), ipe::PdfDict::value(), ipe::Vector::x, ipe::Vector::y, and ipe::String::z().
- -Referenced by doDrawText(), ipe::PdfViewBase::refreshSurface(), ipe::PdfThumbnail::render(), and setDimmed().
- -
-
|
- -inline | -
References doAddClipPath(), doClosePath(), doCurveTo(), doDrawArc(), doDrawBitmap(), doDrawPath(), doDrawText(), doLineTo(), doMoveTo(), doPop(), doPush(), ipe::Painter::fill(), and ipe::Painter::stroke().
- -
-
|
- -protectedvirtual | -
Perform graphics state push on output medium.
- -Reimplemented from ipe::Painter.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Perform graphics state pop on output medium.
- -Reimplemented from ipe::Painter.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Perform moveto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Perform lineto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Perform curveto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Perform closepath operator.
- -Reimplemented from ipe::Painter.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Draw an elliptic arc.
-The default implementations calls drawArcAsBezier(). The transformation matrix has not yet been applied to arc.
- -Reimplemented from ipe::Painter.
- -References ipe::Arc::iAlpha, ipe::Arc::iBeta, ipe::Arc::iM, ipe::Arc::isEllipse(), and ipe::Painter::matrix().
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
-
|
- -protectedvirtual | -
Actually draw the path.
- -Reimplemented from ipe::Painter.
- -References ipe::Painter::cascade(), ipe::Painter::dashStyle(), ipe::EBevelJoin, ipe::EButtCap, ipe::EDefaultCap, ipe::EDefaultJoin, ipe::EEvenOddRule, ipe::EMiterJoin, ipe::Gradient::ERadial, ipe::ERoundCap, ipe::ERoundJoin, ipe::ESquareCap, ipe::EStrokedAndFilled, ipe::Painter::fill(), ipe::Painter::fillRule(), ipe::Cascade::findGradient(), ipe::Cascade::findTiling(), ipe::Painter::gradient(), ipe::Tiling::iAngle, ipe::Color::iBlue, ipe::Gradient::iExtend, ipe::Color::iGreen, ipe::Gradient::iMatrix, ipe::Gradient::iRadius, ipe::Color::iRed, ipe::Tiling::iStep, ipe::Gradient::iStops, ipe::Gradient::iType, ipe::Gradient::iV, ipe::Tiling::iWidth, ipe::Painter::lineCap(), ipe::Painter::lineJoin(), ipe::Painter::matrix(), ipe::Painter::opacity(), ipe::Painter::pen(), ipe::Painter::stroke(), ipe::Painter::strokeOpacity(), ipe::Painter::tiling(), ipe::Fixed::toDouble(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Draw a bitmap.
- -Reimplemented from ipe::Painter.
- -References ipe::Buffer::data(), ipe::Bitmap::height(), ipe::Painter::matrix(), ipe::Painter::opacity(), ipe::Bitmap::pixelData(), ipe::Buffer::size(), and ipe::Bitmap::width().
- -Referenced by type3Font().
- -
-
|
- -protectedvirtual | -
Draw a text object.
- -Reimplemented from ipe::Painter.
- -References ipe::Text::align(), executeStream(), ipe::String::find(), ipe::Text::getXForm(), ipe::Color::iBlue, ipe::Color::iGreen, ipe::Text::XForm::iName, ipe::Color::iRed, ipe::Text::XForm::iStretch, ipe::Text::XForm::iTranslation, ipe::String::left(), ipe::Painter::matrix(), ipe::Painter::opacity(), ipe::Fonts::screenFont(), ipe::String::size(), ipe::Painter::stroke(), ipe::Text::text(), ipe::Fixed::toDouble(), ipe::Text::totalHeight(), ipe::Painter::transform(), ipe::Painter::translate(), ipe::Matrix::translation(), ipe::Text::width(), ipe::Vector::x, ipe::Vector::y, ipe::String::z(), and ipe::Vector::ZERO.
- -Referenced by type3Font().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::CairoPainter, including all inherited members.
-addClipPath() | ipe::Painter | |
CairoPainter(const Cascade *sheet, Fonts *fonts, cairo_t *cc, double zoom, bool pretty) | ipe::CairoPainter | |
cascade() const | ipe::Painter | inline |
closePath() | ipe::Painter | |
curveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::Painter | |
curveTo(const Bezier &bezier) | ipe::Painter | inline |
dashStyle() const | ipe::Painter | inline |
dashStyle(std::vector< double > &dashes, double &offset) const | ipe::Painter | |
doAddClipPath() | ipe::CairoPainter | protectedvirtual |
doClosePath() | ipe::CairoPainter | protectedvirtual |
doCurveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::CairoPainter | protectedvirtual |
doDrawArc(const Arc &arc) | ipe::CairoPainter | protectedvirtual |
doDrawBitmap(Bitmap bitmap) | ipe::CairoPainter | protectedvirtual |
doDrawPath(TPathMode mode) | ipe::CairoPainter | protectedvirtual |
doDrawSymbol(Attribute symbol) | ipe::Painter | protectedvirtual |
doDrawText(const Text *text) | ipe::CairoPainter | protectedvirtual |
doLineTo(const Vector &v) | ipe::CairoPainter | protectedvirtual |
doMoveTo(const Vector &v) | ipe::CairoPainter | protectedvirtual |
doNewPath() | ipe::Painter | protectedvirtual |
doPop() | ipe::CairoPainter | protectedvirtual |
doPush() | ipe::CairoPainter | protectedvirtual |
drawArc(const Arc &arc) | ipe::Painter | |
drawArcAsBezier(double alpha) | ipe::Painter | protected |
drawBitmap(Bitmap bitmap) | ipe::Painter | |
drawEllipse() | ipe::Painter | |
drawPath(TPathMode mode) | ipe::Painter | |
drawSymbol(Attribute symbol) | ipe::Painter | |
drawText(const Text *text) | ipe::Painter | |
executeStream(const PdfDict *stream, const PdfDict *resources) | ipe::CairoPainter | |
fill() const | ipe::Painter | inline |
fillRule() const | ipe::Painter | inline |
gradient() const | ipe::Painter | inline |
iAttributeMap | ipe::Painter | protected |
iCascade | ipe::Painter | protected |
iInPath | ipe::Painter | protected |
iMatrix | ipe::Painter | protected |
iState | ipe::Painter | protected |
lineCap() const | ipe::Painter | inline |
lineJoin() const | ipe::Painter | inline |
lineTo(const Vector &v) | ipe::Painter | |
lookup(Kind kind, Attribute sym) const | ipe::Painter | |
matrix() const | ipe::Painter | inline |
moveTo(const Vector &v) | ipe::Painter | |
newPath() | ipe::Painter | |
opacity() const | ipe::Painter | inline |
Painter(const Cascade *style) | ipe::Painter | |
pen() const | ipe::Painter | inline |
pop() | ipe::Painter | |
popMatrix() | ipe::Painter | |
push() | ipe::Painter | |
pushMatrix() | ipe::Painter | |
rect(const Rect &re) | ipe::Painter | |
setAttributeMap(const AttributeMap *map) | ipe::Painter | |
setDashStyle(Attribute dash) | ipe::Painter | |
setDimmed(bool dim) | ipe::CairoPainter | inline |
setFill(Attribute color) | ipe::Painter | |
setFillRule(TFillRule rule) | ipe::Painter | |
setGradient(Attribute grad) | ipe::Painter | |
setLineCap(TLineCap cap) | ipe::Painter | |
setLineJoin(TLineJoin join) | ipe::Painter | |
setOpacity(Attribute opaq) | ipe::Painter | |
setPen(Attribute pen) | ipe::Painter | |
setState(const State &state) | ipe::Painter | |
setStroke(Attribute color) | ipe::Painter | |
setStrokeOpacity(Attribute opaq) | ipe::Painter | |
setSymFill(Attribute color) | ipe::Painter | |
setSymPen(Attribute wid) | ipe::Painter | |
setSymStroke(Attribute color) | ipe::Painter | |
setTiling(Attribute til) | ipe::Painter | |
state() const | ipe::Painter | inline |
stroke() const | ipe::Painter | inline |
strokeOpacity() const | ipe::Painter | inline |
symFill() const | ipe::Painter | inline |
symPen() const | ipe::Painter | inline |
symStroke() const | ipe::Painter | inline |
tiling() const | ipe::Painter | inline |
transform(const Matrix &m) | ipe::Painter | |
translate(const Vector &v) | ipe::Painter | |
type3Font() const | ipe::CairoPainter | inline |
untransform(TTransformations trans) | ipe::Painter | |
~CairoPainter() | ipe::CairoPainter | inlinevirtual |
~Painter() | ipe::Painter | virtual |
- Ipelib
-
- |
-
#include <ipecanvas.h>
Inherited by Canvas, ipe::Canvas, ipe::Canvas, and ipe::Canvas.
--Classes | |
struct | Style |
-Public Types | |
enum | TModifiers { - EShift = 0x100, -EControl = 0x200, -EAlt = 0x400, -EMeta = 0x800, - - ECommand = 0x1000 - - } |
enum | TCursor { EStandardCursor, -EHandCursor, -ECrossCursor, -EDotCursor - } |
-Public Member Functions | |
virtual | ~CanvasBase () |
void | setPage (const Page *page, int pno, int view, const Cascade *sheet) |
void | setResources (const PdfResources *resources) |
Vector | pan () const |
double | zoom () const |
const Cascade * | cascade () const |
Vector | center () const |
Vector | pos () const |
Vector | unsnappedPos () const |
Vector | globalPos () const |
Vector | simpleSnapPos () const |
const Snap & | snap () const |
void | setInkMode (bool ink) |
int | additionalModifiers () const |
void | setAdditionalModifiers (int mod) |
bool | type3Font () |
Vector | devToUser (const Vector &arg) const |
Vector | userToDev (const Vector &arg) const |
void | setCanvasStyle (const Style &style) |
Style | canvasStyle () const |
void | setPan (const Vector &v) |
void | setZoom (double zoom) |
void | setSnap (const Snap &s) |
void | setDimmed (bool dimmed) |
void | setAutoOrigin (const Vector &v) |
Matrix | canvasTfm () const |
void | setObserver (CanvasObserver *observer) |
void | setFifiVisible (bool visible) |
void | setSelectionVisible (bool visible) |
void | setTool (Tool *tool) |
void | finishTool () |
Tool * | tool () |
void | update () |
void | updateTool () |
int | canvasWidth () const |
int | canvasHeight () const |
virtual void | setCursor (TCursor cursor, double w=1.0, Color *color=nullptr)=0 |
virtual void | invalidate (int x, int y, int w, int h)=0 |
-Static Public Member Functions | |
static int | selectPageOrView (Document *doc, int page=-1, int startIndex=0, int pageWidth=240, int width=600, int height=480) |
-Protected Member Functions | |
CanvasBase () | |
void | drawPaper (cairo_t *cc) |
void | drawFrame (cairo_t *cc) |
void | drawAxes (cairo_t *cc) |
void | drawGrid (cairo_t *cc) |
void | drawObjects (cairo_t *cc) |
void | drawTool (Painter &painter) |
void | snapToPaperAndFrame () |
void | refreshSurface () |
void | computeFifi (double x, double y) |
void | drawFifi (cairo_t *cr) |
virtual void | invalidate ()=0 |
-Protected Attributes | |
CanvasObserver * | iObserver |
Tool * | iTool |
const Page * | iPage |
int | iPageNumber |
int | iView |
const Cascade * | iCascade |
Style | iStyle |
Vector | iPan |
double | iZoom |
Snap | iSnap |
bool | iDimmed |
bool | iAutoSnap |
Vector | iAutoOrigin |
int | iAdditionalModifiers |
bool | isInkMode |
bool | iRepaintObjects |
double | iWidth |
double | iHeight |
double | iBWidth |
double | iBHeight |
cairo_surface_t * | iSurface |
Vector | iUnsnappedMousePos |
Vector | iMousePos |
Vector | iGlobalPos |
Vector | iOldFifi |
bool | iFifiVisible |
Snap::TSnapModes | iFifiMode |
bool | iSelectionVisible |
const PdfResources * | iResources |
std::unique_ptr< Fonts > | iFonts |
bool | iType3Font |
enum ipe::CanvasBase::TModifiers | -
enum ipe::CanvasBase::TCursor | -
-
|
- -virtual | -
destructor.
- -
-
|
- -protected | -
Construct a new canvas.
- -Referenced by ipe::CanvasObserver::canvasObserverSizeChanged().
- -void CanvasBase::setPage | -( | -const Page * | -page, | -
- | - | int | -pno, | -
- | - | int | -view, | -
- | - | const Cascade * | -sheet | -
- | ) | -- |
Set the page to be displayed.
-Doesn't take ownership of any argument. The page number pno is only needed if page numbering is turned on.
- -void CanvasBase::setResources | -( | -const PdfResources * | -resources | ) | -- |
set information about Latex fonts (from ipe::Document)
- -
-
|
- -inline | -
Return current pan.
- -Referenced by Canvas::magnify(), and ipe::PanTool::mouseButton().
- -
-
|
- -inline | -
Return current zoom.
- -Referenced by ipe::SelectTool::draw(), ipe::SelectTool::SelectTool(), and ipe::Canvas::sizeHint().
- -
-
|
- -inline | -
Return current style sheet cascade.
- -Referenced by ipe::PanTool::draw().
- -
-
|
- -inline | -
Return center of canvas.
- -
-
|
- -inline | -
Return last mouse position (snapped!) in user coordinates.
- -Referenced by ipe::TransformTool::mouseButton(), ipe::TransformTool::mouseMove(), and ipe::TransformTool::TransformTool().
- -
-
|
- -inline | -
Return last unsnapped mouse position in user coordinates.
- -Referenced by ipe::PanTool::mouseButton(), ipe::PanTool::mouseMove(), ipe::SelectTool::mouseMove(), ipe::PanTool::PanTool(), and ipe::SelectTool::SelectTool().
- -
-
|
- -inline | -
Return global mouse position of last mouse press/release.
- -Referenced by ipe::Canvas::tabletEvent().
- -Vector CanvasBase::simpleSnapPos | -( | -) | -const | -
Return snapped mouse position without angular snapping.
- -
-
|
- -inline | -
Return current snapping information.
- -Referenced by ipe::TransformTool::TransformTool().
- -
-
|
- -inline | -
Set ink mode.
- -
-
|
- -inline | -
Return current additional modifiers.
- -void CanvasBase::setAdditionalModifiers | -( | -int | -mod | ) | -- |
Set additional modifiers.
-These modifier bits are passed to the Tool when a key is pressed or a drawing action is performed in addition to the actual keyboard modifiers.
- -bool CanvasBase::type3Font | -( | -) | -- |
Has an attempt been made to use a Type3 font?
- -Convert canvas (device) coordinates to user coordinates.
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by Canvas::magnify().
- -Convert user coordinates to canvas (device) coordinates.
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Canvas::drawFifi().
- -void CanvasBase::setCanvasStyle | -( | -const Style & | -style | ) | -- |
Set style of canvas drawing.
-Includes paper color, pretty text, and grid.
- -
-
|
- -inline | -
Return canvas style.
- -void CanvasBase::setPan | -( | -const Vector & | -v | ) | -- |
Set current pan position.
-The pan position is the user coordinate that is displayed at the very center of the canvas.
- -Referenced by Canvas::magnify(), and ipe::PanTool::mouseButton().
- -void CanvasBase::setZoom | -( | -double | -zoom | ) | -- |
Set current zoom factor.
-The zoom factor maps user coordinates to screen pixel coordinates.
- -Referenced by Canvas::magnify().
- -void CanvasBase::setSnap | -( | -const Snap & | -s | ) | -- |
Set the snapping information.
- -void CanvasBase::setDimmed | -( | -bool | -dimmed | ) | -- |
void CanvasBase::setAutoOrigin | -( | -const Vector & | -v | ) | -- |
Enable automatic angular snapping with this origin.
- -Referenced by ipe::TransformTool::TransformTool().
- -Matrix CanvasBase::canvasTfm | -( | -) | -const | -
Matrix mapping user coordinates to canvas coordinates.
- -Referenced by Canvas::drawRect(), and ipe::Canvas::paintEvent().
- -void CanvasBase::setObserver | -( | -CanvasObserver * | -observer | ) | -- |
Set an observer.
-Use 0 to delete current observer.
- -void CanvasBase::setFifiVisible | -( | -bool | -visible | ) | -- |
Set whether Fifi should be shown.
-Fifi will only be shown if a snapping mode is active.
- -void CanvasBase::setSelectionVisible | -( | -bool | -visible | ) | -- |
Set whether selection should be shown when there is no tool.
- -void CanvasBase::setTool | -( | -Tool * | -tool | ) | -- |
Set a new tool.
-Calls canvasObserverToolChanged().
- -void CanvasBase::finishTool | -( | -) | -- |
Referenced by ipe::SelectTool::key(), ipe::PanTool::mouseButton(), ipe::SelectTool::mouseButton(), and ipe::TransformTool::mouseButton().
- -
-
|
- -inline | -
void CanvasBase::update | -( | -) | -- |
Mark for update with redrawing of objects.
- -Referenced by Canvas::magnify().
- -void CanvasBase::updateTool | -( | -) | -- |
Mark for update with redrawing of tool only.
- -Referenced by ipe::SelectTool::key(), ipe::PanTool::mouseMove(), ipe::SelectTool::mouseMove(), and ipe::TransformTool::mouseMove().
- -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -pure virtual | -
Implemented in ipe::Canvas.
- -Referenced by ipe::PanTool::PanTool(), ipe::SelectTool::SelectTool(), and ipe::TransformTool::TransformTool().
- -
-
|
- -static | -
Show dialog to select a page or a view.
-If page is negative (the default), shows thumbnails of all pages of the document in a dialog. If the user selects a page, the page number is returned. If the dialog is canceled, -1 is returned.
-If page is non-negative, all views of this page are shown, and the selected view number is returned.
-itemWidth is the width of the page thumbnails (the height is computed automatically).
-If page is negative (the default), shows thumbnails of all pages of the document in a dialog. If the user selects a page, the page number is returned. If the dialog is canceled, -1 is returned.
-If page is non-negative, all views of this page are shown, and the selected view number is returned.
-If page is negative (the default), shows thumbnails of all pages of the document in a dialog. If the user selects a page, the page number is returned. If the dialog is canceled, -1 is returned.
-If page is non-negative, all views of this page are shown, and the selected view number is returned.
-pageWidth is the width of the page thumbnails (the height is computed automatically).
- -References ipe::Thumbnail::height(), and ipe::Thumbnail::width().
- -Referenced by ipe::PageSelector::fill().
- -
-
|
- -pure virtual | -
Implemented in ipe::Canvas.
- -
-
|
- -protected | -
References ipe::Layout::iOrigin, ipe::Layout::iPaperSize, ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -protected | -
References ipe::Layout::iFrameSize, ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -protected | -
References ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -protected | -
References ipe::Vector::x, ipe::Vector::y, and ipe::Vector::ZERO.
- -
-
|
- -protected | -
-
|
- -protected | -
Draw the current canvas tool.
-If no tool is set, it draws the selected objects.
- -References ipe::EPrimarySelected, ipe::ESecondarySelected, ipe::Painter::setPen(), and ipe::Painter::setStroke().
- -Referenced by Canvas::drawRect(), and ipe::Canvas::paintEvent().
- -
-
|
- -protected | -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::paintEvent(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Stores the mouse position in iUnsnappedMousePos, computes Fifi if snapping is enabled, and stores snapped position in iMousePos.
- -References ipe::Snap::ESnapAuto, ipe::Snap::ESnapNone, ipe::Vector::x, and ipe::Vector::y.
- -Referenced by Canvas::drawRect(), ipe::Canvas::mouseButton(), Canvas::mouseMove(), ipe::Canvas::mouseMoveEvent(), and ipe::Canvas::tabletEvent().
- -
-
|
- -protected | -
-
|
- -protectedpure virtual | -
Implemented in ipe::Canvas.
- -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
Referenced by Canvas::drawRect(), and ipe::Canvas::paintEvent().
- -
-
|
- -protected | -
-
|
- -protected | -
Referenced by Canvas::Canvas(), Canvas::drawRect(), Canvas::magnify(), Canvas::mouseMove(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), and ipe::Canvas::paintEvent().
- -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
Referenced by Canvas::drawRect(), and Canvas::magnify().
- -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::keyPressEvent(), ipe::Canvas::mouseButton(), and ipe::Canvas::tabletEvent().
- -
-
|
- -protected | -
-
|
- -protected | -
Referenced by ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::paintEvent(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), Canvas::magnify(), Canvas::mouseMove(), ipe::Canvas::paintEvent(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::paintEvent(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::paintEvent(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::paintEvent(), and ipe::Canvas::~Canvas().
- -
-
|
- -protected | -
-
|
- -protected | -
Referenced by ipe::Canvas::drawFifi().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), ipe::Canvas::mouseButton(), and ipe::Canvas::tabletEvent().
- -
-
|
- -protected | -
Referenced by ipe::Canvas::drawFifi().
- -
-
|
- -protected | -
Referenced by Canvas::drawRect(), and ipe::Canvas::paintEvent().
- -
-
|
- -protected | -
Referenced by ipe::Canvas::drawFifi().
- -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
Referenced by Canvas::drawRect().
- -
-
|
- -protected | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::CanvasBase, including all inherited members.
-additionalModifiers() const | ipe::CanvasBase | inline |
CanvasBase() | ipe::CanvasBase | protected |
canvasHeight() const | ipe::CanvasBase | inline |
canvasStyle() const | ipe::CanvasBase | inline |
canvasTfm() const | ipe::CanvasBase | |
canvasWidth() const | ipe::CanvasBase | inline |
cascade() const | ipe::CanvasBase | inline |
center() const | ipe::CanvasBase | inline |
computeFifi(double x, double y) | ipe::CanvasBase | protected |
devToUser(const Vector &arg) const | ipe::CanvasBase | |
drawAxes(cairo_t *cc) | ipe::CanvasBase | protected |
drawFifi(cairo_t *cr) | ipe::CanvasBase | protected |
drawFrame(cairo_t *cc) | ipe::CanvasBase | protected |
drawGrid(cairo_t *cc) | ipe::CanvasBase | protected |
drawObjects(cairo_t *cc) | ipe::CanvasBase | protected |
drawPaper(cairo_t *cc) | ipe::CanvasBase | protected |
drawTool(Painter &painter) | ipe::CanvasBase | protected |
EAlt enum value | ipe::CanvasBase | |
ECommand enum value | ipe::CanvasBase | |
EControl enum value | ipe::CanvasBase | |
ECrossCursor enum value | ipe::CanvasBase | |
EDotCursor enum value | ipe::CanvasBase | |
EHandCursor enum value | ipe::CanvasBase | |
EMeta enum value | ipe::CanvasBase | |
EShift enum value | ipe::CanvasBase | |
EStandardCursor enum value | ipe::CanvasBase | |
finishTool() | ipe::CanvasBase | |
globalPos() const | ipe::CanvasBase | inline |
iAdditionalModifiers | ipe::CanvasBase | protected |
iAutoOrigin | ipe::CanvasBase | protected |
iAutoSnap | ipe::CanvasBase | protected |
iBHeight | ipe::CanvasBase | protected |
iBWidth | ipe::CanvasBase | protected |
iCascade | ipe::CanvasBase | protected |
iDimmed | ipe::CanvasBase | protected |
iFifiMode | ipe::CanvasBase | protected |
iFifiVisible | ipe::CanvasBase | protected |
iFonts | ipe::CanvasBase | protected |
iGlobalPos | ipe::CanvasBase | protected |
iHeight | ipe::CanvasBase | protected |
iMousePos | ipe::CanvasBase | protected |
invalidate(int x, int y, int w, int h)=0 | ipe::CanvasBase | pure virtual |
invalidate()=0 | ipe::CanvasBase | protectedpure virtual |
iObserver | ipe::CanvasBase | protected |
iOldFifi | ipe::CanvasBase | protected |
iPage | ipe::CanvasBase | protected |
iPageNumber | ipe::CanvasBase | protected |
iPan | ipe::CanvasBase | protected |
iRepaintObjects | ipe::CanvasBase | protected |
iResources | ipe::CanvasBase | protected |
iSelectionVisible | ipe::CanvasBase | protected |
isInkMode | ipe::CanvasBase | protected |
iSnap | ipe::CanvasBase | protected |
iStyle | ipe::CanvasBase | protected |
iSurface | ipe::CanvasBase | protected |
iTool | ipe::CanvasBase | protected |
iType3Font | ipe::CanvasBase | protected |
iUnsnappedMousePos | ipe::CanvasBase | protected |
iView | ipe::CanvasBase | protected |
iWidth | ipe::CanvasBase | protected |
iZoom | ipe::CanvasBase | protected |
pan() const | ipe::CanvasBase | inline |
pos() const | ipe::CanvasBase | inline |
refreshSurface() | ipe::CanvasBase | protected |
selectPageOrView(Document *doc, int page=-1, int startIndex=0, int pageWidth=240, int width=600, int height=480) | ipe::CanvasBase | static |
setAdditionalModifiers(int mod) | ipe::CanvasBase | |
setAutoOrigin(const Vector &v) | ipe::CanvasBase | |
setCanvasStyle(const Style &style) | ipe::CanvasBase | |
setCursor(TCursor cursor, double w=1.0, Color *color=nullptr)=0 | ipe::CanvasBase | pure virtual |
setDimmed(bool dimmed) | ipe::CanvasBase | |
setFifiVisible(bool visible) | ipe::CanvasBase | |
setInkMode(bool ink) | ipe::CanvasBase | inline |
setObserver(CanvasObserver *observer) | ipe::CanvasBase | |
setPage(const Page *page, int pno, int view, const Cascade *sheet) | ipe::CanvasBase | |
setPan(const Vector &v) | ipe::CanvasBase | |
setResources(const PdfResources *resources) | ipe::CanvasBase | |
setSelectionVisible(bool visible) | ipe::CanvasBase | |
setSnap(const Snap &s) | ipe::CanvasBase | |
setTool(Tool *tool) | ipe::CanvasBase | |
setZoom(double zoom) | ipe::CanvasBase | |
simpleSnapPos() const | ipe::CanvasBase | |
snap() const | ipe::CanvasBase | inline |
snapToPaperAndFrame() | ipe::CanvasBase | protected |
TCursor enum name | ipe::CanvasBase | |
TModifiers enum name | ipe::CanvasBase | |
tool() | ipe::CanvasBase | inline |
type3Font() | ipe::CanvasBase | |
unsnappedPos() const | ipe::CanvasBase | inline |
update() | ipe::CanvasBase | |
updateTool() | ipe::CanvasBase | |
userToDev(const Vector &arg) const | ipe::CanvasBase | |
zoom() const | ipe::CanvasBase | inline |
~CanvasBase() | ipe::CanvasBase | virtual |
- Ipelib
-
- |
-
#include <ipecanvas_win.h>
Inherits ipe::CanvasBase, QWidget, ipe::CanvasBase, and ipe::CanvasBase.
--Public Member Functions | |
Canvas (GtkWidget *parent) | |
~Canvas () | |
GtkWidget * | window () const |
Canvas (QWidget *parent, Qt::WindowFlags f=nullptr) | |
virtual void | setCursor (TCursor cursor, double w=1.0, Color *color=nullptr) |
Canvas (HWND parent, HINSTANCE hInstance=nullptr) | |
HWND | windowId () const |
Public Member Functions inherited from ipe::CanvasBase | |
virtual | ~CanvasBase () |
void | setPage (const Page *page, int pno, int view, const Cascade *sheet) |
void | setResources (const PdfResources *resources) |
Vector | pan () const |
double | zoom () const |
const Cascade * | cascade () const |
Vector | center () const |
Vector | pos () const |
Vector | unsnappedPos () const |
Vector | globalPos () const |
Vector | simpleSnapPos () const |
const Snap & | snap () const |
void | setInkMode (bool ink) |
int | additionalModifiers () const |
void | setAdditionalModifiers (int mod) |
bool | type3Font () |
Vector | devToUser (const Vector &arg) const |
Vector | userToDev (const Vector &arg) const |
void | setCanvasStyle (const Style &style) |
Style | canvasStyle () const |
void | setPan (const Vector &v) |
void | setZoom (double zoom) |
void | setSnap (const Snap &s) |
void | setDimmed (bool dimmed) |
void | setAutoOrigin (const Vector &v) |
Matrix | canvasTfm () const |
void | setObserver (CanvasObserver *observer) |
void | setFifiVisible (bool visible) |
void | setSelectionVisible (bool visible) |
void | setTool (Tool *tool) |
void | finishTool () |
Tool * | tool () |
void | update () |
void | updateTool () |
int | canvasWidth () const |
int | canvasHeight () const |
-Static Public Member Functions | |
static void | init (HINSTANCE hInstance) |
static UINT | getDpiForWindow (HWND hwnd) |
static HBITMAP | createBitmap (uint8_t *p, int w, int h) |
Static Public Member Functions inherited from ipe::CanvasBase | |
static int | selectPageOrView (Document *doc, int page=-1, int startIndex=0, int pageWidth=240, int width=600, int height=480) |
-Protected Member Functions | |
virtual void | invalidate () |
virtual void | invalidate (int x, int y, int w, int h) |
void | drawFifi (QPainter &q) |
virtual void | paintEvent (QPaintEvent *ev) |
void | mouseButton (QMouseEvent *ev, int button, bool press) |
virtual void | mouseDoubleClickEvent (QMouseEvent *ev) |
virtual void | mousePressEvent (QMouseEvent *ev) |
virtual void | mouseReleaseEvent (QMouseEvent *ev) |
virtual void | mouseMoveEvent (QMouseEvent *ev) |
virtual void | tabletEvent (QTabletEvent *ev) |
virtual void | wheelEvent (QWheelEvent *ev) |
virtual void | keyPressEvent (QKeyEvent *ev) |
virtual QSize | sizeHint () const |
Protected Member Functions inherited from ipe::CanvasBase | |
CanvasBase () | |
void | drawPaper (cairo_t *cc) |
void | drawFrame (cairo_t *cc) |
void | drawAxes (cairo_t *cc) |
void | drawGrid (cairo_t *cc) |
void | drawObjects (cairo_t *cc) |
void | drawTool (Painter &painter) |
void | snapToPaperAndFrame () |
void | refreshSurface () |
void | computeFifi (double x, double y) |
void | drawFifi (cairo_t *cr) |
-Additional Inherited Members | |
Public Types inherited from ipe::CanvasBase | |
enum | TModifiers { - EShift = 0x100, -EControl = 0x200, -EAlt = 0x400, -EMeta = 0x800, - - ECommand = 0x1000 - - } |
enum | TCursor { EStandardCursor, -EHandCursor, -ECrossCursor, -EDotCursor - } |
Protected Attributes inherited from ipe::CanvasBase | |
CanvasObserver * | iObserver |
Tool * | iTool |
const Page * | iPage |
int | iPageNumber |
int | iView |
const Cascade * | iCascade |
Style | iStyle |
Vector | iPan |
double | iZoom |
Snap | iSnap |
bool | iDimmed |
bool | iAutoSnap |
Vector | iAutoOrigin |
int | iAdditionalModifiers |
bool | isInkMode |
bool | iRepaintObjects |
double | iWidth |
double | iHeight |
double | iBWidth |
double | iBHeight |
cairo_surface_t * | iSurface |
Vector | iUnsnappedMousePos |
Vector | iMousePos |
Vector | iGlobalPos |
Vector | iOldFifi |
bool | iFifiVisible |
Snap::TSnapModes | iFifiMode |
bool | iSelectionVisible |
const PdfResources * | iResources |
std::unique_ptr< Fonts > | iFonts |
bool | iType3Font |
A widget (control) that displays an Ipe document page.
-Canvas::Canvas | -( | -GtkWidget * | -parent | ) | -- |
References ~Canvas().
- -Referenced by ipe::IpeQ(), and Canvas::scrollWheel().
- -Canvas::~Canvas | -( | -) | -- |
References ipe::CanvasBase::iBHeight, ipe::CanvasBase::iBWidth, ipe::CanvasBase::iHeight, ipe::CanvasBase::iRepaintObjects, ipe::CanvasBase::iSurface, ipe::CanvasBase::iView, ipe::CanvasBase::iWidth, ipe::CanvasBase::refreshSurface(), and ipe::size().
- -Referenced by Canvas().
- -Canvas::Canvas | -( | -QWidget * | -parent, | -
- | - | Qt::WindowFlags | -f = nullptr |
-
- | ) | -- |
Construct a new canvas.
- -Canvas::Canvas | -( | -HWND | -parent, | -
- | - | HINSTANCE | -hInstance = nullptr |
-
- | ) | -- |
-
|
- -inline | -
Referenced by Canvas::drawRect().
- -
-
|
- -virtual | -
Implements ipe::CanvasBase.
- -
-
|
- -protectedvirtual | -
Implements ipe::CanvasBase.
- -
-
|
- -protectedvirtual | -
Implements ipe::CanvasBase.
- -
-
|
- -protected | -
References ipe::Snap::ESnapAngle, ipe::Snap::ESnapAuto, ipe::Snap::ESnapBd, ipe::Snap::ESnapCtl, ipe::Snap::ESnapGrid, ipe::Snap::ESnapInt, ipe::Snap::ESnapNone, ipe::Snap::ESnapVtx, ipe::CanvasBase::iFifiMode, ipe::CanvasBase::iMousePos, ipe::CanvasBase::iOldFifi, and ipe::CanvasBase::userToDev().
- -Referenced by Canvas::drawRect(), ipe::IpeQ(), and paintEvent().
- -
-
|
- -protectedvirtual | -
References ipe::CanvasBase::canvasTfm(), drawFifi(), ipe::CanvasBase::drawTool(), ipe::CanvasBase::iBHeight, ipe::CanvasBase::iBWidth, ipe::CanvasBase::iCascade, ipe::CanvasBase::iFifiVisible, ipe::CanvasBase::iHeight, ipe::CanvasBase::iPage, ipe::CanvasBase::iSurface, ipe::CanvasBase::iWidth, and ipe::CanvasBase::refreshSurface().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protected | -
References ipe::CanvasObserver::canvasObserverMouseAction(), ipe::CanvasBase::computeFifi(), ipe::CanvasBase::iAdditionalModifiers, ipe::CanvasBase::iGlobalPos, ipe::CanvasBase::iObserver, ipe::CanvasBase::iTool, and ipe::Tool::mouseButton().
- -Referenced by ipe::IpeQ(), mouseDoubleClickEvent(), mousePressEvent(), mouseReleaseEvent(), and windowId().
- -
-
|
- -protectedvirtual | -
References mouseButton().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References mouseButton().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References mouseButton().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References ipe::CanvasObserver::canvasObserverPositionChanged(), ipe::CanvasBase::computeFifi(), ipe::CanvasBase::iObserver, ipe::CanvasBase::iTool, and ipe::Tool::mouseMove().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References ipe::CanvasObserver::canvasObserverMouseAction(), ipe::CanvasObserver::canvasObserverPositionChanged(), ipe::CanvasBase::computeFifi(), ipe::CanvasBase::globalPos(), ipe::CanvasBase::iAdditionalModifiers, ipe::CanvasBase::iGlobalPos, ipe::CanvasBase::iObserver, ipe::CanvasBase::iTool, ipe::Tool::mouseButton(), and ipe::Tool::mouseMove().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References ipe::CanvasObserver::canvasObserverWheelMoved(), ipe::CanvasBase::iObserver, and ipe::QPt().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References ipe::CanvasBase::iAdditionalModifiers, ipe::IpeQ(), ipe::CanvasBase::iTool, and ipe::Tool::key().
- -Referenced by ipe::IpeQ().
- -
-
|
- -protectedvirtual | -
References ipe::CanvasBase::EAlt, ipe::CanvasBase::EControl, ipe::CanvasBase::ECrossCursor, ipe::CanvasBase::EDotCursor, ipe::CanvasBase::EHandCursor, ipe::CanvasBase::EMeta, ipe::CanvasBase::EShift, ipe::CanvasBase::EStandardCursor, ipe::Color::iBlue, ipe::Color::iGreen, ipe::Fixed::internal(), ipe::Color::iRed, and ipe::CanvasBase::zoom().
- -Referenced by ipe::IpeQ().
- -
-
|
- -static | -
-
|
- -static | -
-
|
- -inline | -
References createBitmap(), and mouseButton().
- -
-
|
- -static | -
Referenced by windowId().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Canvas, including all inherited members.
-additionalModifiers() const | ipe::CanvasBase | inline |
Canvas(GtkWidget *parent) | ipe::Canvas | |
Canvas(QWidget *parent, Qt::WindowFlags f=nullptr) | ipe::Canvas | |
Canvas(HWND parent, HINSTANCE hInstance=nullptr) | ipe::Canvas | |
CanvasBase() | ipe::CanvasBase | protected |
canvasHeight() const | ipe::CanvasBase | inline |
canvasStyle() const | ipe::CanvasBase | inline |
canvasTfm() const | ipe::CanvasBase | |
canvasWidth() const | ipe::CanvasBase | inline |
cascade() const | ipe::CanvasBase | inline |
center() const | ipe::CanvasBase | inline |
computeFifi(double x, double y) | ipe::CanvasBase | protected |
createBitmap(uint8_t *p, int w, int h) | ipe::Canvas | static |
devToUser(const Vector &arg) const | ipe::CanvasBase | |
drawAxes(cairo_t *cc) | ipe::CanvasBase | protected |
drawFifi(QPainter &q) | ipe::Canvas | protected |
ipe::CanvasBase::drawFifi(cairo_t *cr) | ipe::CanvasBase | protected |
drawFrame(cairo_t *cc) | ipe::CanvasBase | protected |
drawGrid(cairo_t *cc) | ipe::CanvasBase | protected |
drawObjects(cairo_t *cc) | ipe::CanvasBase | protected |
drawPaper(cairo_t *cc) | ipe::CanvasBase | protected |
drawTool(Painter &painter) | ipe::CanvasBase | protected |
EAlt enum value | ipe::CanvasBase | |
ECommand enum value | ipe::CanvasBase | |
EControl enum value | ipe::CanvasBase | |
ECrossCursor enum value | ipe::CanvasBase | |
EDotCursor enum value | ipe::CanvasBase | |
EHandCursor enum value | ipe::CanvasBase | |
EMeta enum value | ipe::CanvasBase | |
EShift enum value | ipe::CanvasBase | |
EStandardCursor enum value | ipe::CanvasBase | |
finishTool() | ipe::CanvasBase | |
getDpiForWindow(HWND hwnd) | ipe::Canvas | static |
globalPos() const | ipe::CanvasBase | inline |
iAdditionalModifiers | ipe::CanvasBase | protected |
iAutoOrigin | ipe::CanvasBase | protected |
iAutoSnap | ipe::CanvasBase | protected |
iBHeight | ipe::CanvasBase | protected |
iBWidth | ipe::CanvasBase | protected |
iCascade | ipe::CanvasBase | protected |
iDimmed | ipe::CanvasBase | protected |
iFifiMode | ipe::CanvasBase | protected |
iFifiVisible | ipe::CanvasBase | protected |
iFonts | ipe::CanvasBase | protected |
iGlobalPos | ipe::CanvasBase | protected |
iHeight | ipe::CanvasBase | protected |
iMousePos | ipe::CanvasBase | protected |
init(HINSTANCE hInstance) | ipe::Canvas | static |
invalidate() | ipe::Canvas | protectedvirtual |
invalidate(int x, int y, int w, int h) | ipe::Canvas | protectedvirtual |
iObserver | ipe::CanvasBase | protected |
iOldFifi | ipe::CanvasBase | protected |
iPage | ipe::CanvasBase | protected |
iPageNumber | ipe::CanvasBase | protected |
iPan | ipe::CanvasBase | protected |
iRepaintObjects | ipe::CanvasBase | protected |
iResources | ipe::CanvasBase | protected |
iSelectionVisible | ipe::CanvasBase | protected |
isInkMode | ipe::CanvasBase | protected |
iSnap | ipe::CanvasBase | protected |
iStyle | ipe::CanvasBase | protected |
iSurface | ipe::CanvasBase | protected |
iTool | ipe::CanvasBase | protected |
iType3Font | ipe::CanvasBase | protected |
iUnsnappedMousePos | ipe::CanvasBase | protected |
iView | ipe::CanvasBase | protected |
iWidth | ipe::CanvasBase | protected |
iZoom | ipe::CanvasBase | protected |
keyPressEvent(QKeyEvent *ev) | ipe::Canvas | protectedvirtual |
mouseButton(QMouseEvent *ev, int button, bool press) | ipe::Canvas | protected |
mouseDoubleClickEvent(QMouseEvent *ev) | ipe::Canvas | protectedvirtual |
mouseMoveEvent(QMouseEvent *ev) | ipe::Canvas | protectedvirtual |
mousePressEvent(QMouseEvent *ev) | ipe::Canvas | protectedvirtual |
mouseReleaseEvent(QMouseEvent *ev) | ipe::Canvas | protectedvirtual |
paintEvent(QPaintEvent *ev) | ipe::Canvas | protectedvirtual |
pan() const | ipe::CanvasBase | inline |
pos() const | ipe::CanvasBase | inline |
refreshSurface() | ipe::CanvasBase | protected |
selectPageOrView(Document *doc, int page=-1, int startIndex=0, int pageWidth=240, int width=600, int height=480) | ipe::CanvasBase | static |
setAdditionalModifiers(int mod) | ipe::CanvasBase | |
setAutoOrigin(const Vector &v) | ipe::CanvasBase | |
setCanvasStyle(const Style &style) | ipe::CanvasBase | |
setCursor(TCursor cursor, double w=1.0, Color *color=nullptr) | ipe::Canvas | virtual |
setDimmed(bool dimmed) | ipe::CanvasBase | |
setFifiVisible(bool visible) | ipe::CanvasBase | |
setInkMode(bool ink) | ipe::CanvasBase | inline |
setObserver(CanvasObserver *observer) | ipe::CanvasBase | |
setPage(const Page *page, int pno, int view, const Cascade *sheet) | ipe::CanvasBase | |
setPan(const Vector &v) | ipe::CanvasBase | |
setResources(const PdfResources *resources) | ipe::CanvasBase | |
setSelectionVisible(bool visible) | ipe::CanvasBase | |
setSnap(const Snap &s) | ipe::CanvasBase | |
setTool(Tool *tool) | ipe::CanvasBase | |
setZoom(double zoom) | ipe::CanvasBase | |
simpleSnapPos() const | ipe::CanvasBase | |
sizeHint() const | ipe::Canvas | protectedvirtual |
snap() const | ipe::CanvasBase | inline |
snapToPaperAndFrame() | ipe::CanvasBase | protected |
tabletEvent(QTabletEvent *ev) | ipe::Canvas | protectedvirtual |
TCursor enum name | ipe::CanvasBase | |
TModifiers enum name | ipe::CanvasBase | |
tool() | ipe::CanvasBase | inline |
type3Font() | ipe::CanvasBase | |
unsnappedPos() const | ipe::CanvasBase | inline |
update() | ipe::CanvasBase | |
updateTool() | ipe::CanvasBase | |
userToDev(const Vector &arg) const | ipe::CanvasBase | |
wheelEvent(QWheelEvent *ev) | ipe::Canvas | protectedvirtual |
window() const | ipe::Canvas | inline |
windowId() const | ipe::Canvas | inline |
zoom() const | ipe::CanvasBase | inline |
~Canvas() | ipe::Canvas | |
~CanvasBase() | ipe::CanvasBase | virtual |
- Ipelib
-
- |
-
#include <ipecanvas.h>
-Public Member Functions | |
virtual | ~CanvasObserver () |
virtual void | canvasObserverWheelMoved (double xDegrees, double yDegrees, int kind) |
virtual void | canvasObserverMouseAction (int button) |
virtual void | canvasObserverPositionChanged () |
virtual void | canvasObserverToolChanged (bool hasTool) |
virtual void | canvasObserverSizeChanged () |
-
|
- -virtual | -
-
|
- -virtual | -
Referenced by Canvas::magnify(), Canvas::scrollWheel(), and ipe::Canvas::wheelEvent().
- -
-
|
- -virtual | -
Referenced by Canvas::drawRect(), ipe::Canvas::mouseButton(), and ipe::Canvas::tabletEvent().
- -
-
|
- -virtual | -
Referenced by Canvas::mouseMove(), ipe::Canvas::mouseMoveEvent(), and ipe::Canvas::tabletEvent().
- -
-
|
- -virtual | -
-
|
- -virtual | -
References ipe::CanvasBase::CanvasBase(), ipe::Snap::ESnapNone, ipe::IPE_PI, and ipe::Vector::ZERO.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::CanvasObserver, including all inherited members.
-canvasObserverMouseAction(int button) | ipe::CanvasObserver | virtual |
canvasObserverPositionChanged() | ipe::CanvasObserver | virtual |
canvasObserverSizeChanged() | ipe::CanvasObserver | virtual |
canvasObserverToolChanged(bool hasTool) | ipe::CanvasObserver | virtual |
canvasObserverWheelMoved(double xDegrees, double yDegrees, int kind) | ipe::CanvasObserver | virtual |
~CanvasObserver() | ipe::CanvasObserver | virtual |
- Ipelib
-
- |
-
#include <ipestyle.h>
-Public Member Functions | |
Cascade () | |
Cascade (const Cascade &rhs) | |
Cascade & | operator= (const Cascade &rhs) |
~Cascade () | |
int | count () const |
StyleSheet * | sheet (int index) |
const StyleSheet * | sheet (int index) const |
void | insert (int index, StyleSheet *sheet) |
void | remove (int index) |
void | saveAsXml (Stream &stream) const |
bool | has (Kind kind, Attribute sym) const |
Attribute | find (Kind, Attribute sym) const |
const Symbol * | findSymbol (Attribute sym) const |
const Gradient * | findGradient (Attribute sym) const |
const Tiling * | findTiling (Attribute sym) const |
const Effect * | findEffect (Attribute sym) const |
const Layout * | findLayout () const |
const TextPadding * | findTextPadding () const |
const StyleSheet::TitleStyle * | findTitleStyle () const |
const StyleSheet::PageNumberStyle * | findPageNumberStyle () const |
String | findPreamble () const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
void | allNames (Kind kind, AttributeSeq &seq) const |
int | findDefinition (Kind kind, Attribute sym) const |
A cascade of style sheets.
-The StyleSheets of a document cascade in the sense that a document can refer to several StyleSheets, which are arranged in a stack. A lookup is done from top to bottom, and returns as soon as a match is found. Ipe always appends the built-in "standard" style sheet at the bottom of the cascade.
-Cascade::Cascade | -( | -) | -- |
Create an empty cascade.
-This does not add the standard style sheet.
- -References ipe::size().
- -Cascade::Cascade | -( | -const Cascade & | -rhs | ) | -- |
Copy constructor.
- -References count().
- -Cascade::~Cascade | -( | -) | -- |
Destructor.
- -Assignment operator.
- -References count().
- -
-
|
- -inline | -
Return number of style sheets.
- -Referenced by Cascade(), and operator=().
- -
-
|
- -inline | -
Return StyleSheet at index.
- -
-
|
- -inline | -
Return StyleSheet at index.
- -void Cascade::insert | -( | -int | -index, | -
- | - | StyleSheet * | -sheet | -
- | ) | -- |
Insert a style sheet into the cascade.
-Takes ownership of sheet.
- -Referenced by ipe::Document::Document(), and ipe::ImlParser::parseDocument().
- -void Cascade::remove | -( | -int | -index | ) | -- |
Remove a style sheet from the cascade.
-The old sheet is deleted.
- -void Cascade::saveAsXml | -( | -Stream & | -stream | ) | -const | -
References ipe::Attribute::normal(), and ipe::Attribute::UNDEFINED().
- -Referenced by ipe::Path::drawArrow(), ipe::Reference::drawSimple(), ipe::Painter::lookup(), and ipe::Painter::Painter().
- -Referenced by ipe::PdfPainter::doDrawPath(), and ipe::CairoPainter::doDrawPath().
- -Referenced by ipe::CairoPainter::doDrawPath().
- -const Layout * Cascade::findLayout | -( | -) | -const | -
Find page layout (such as text margins).
- -Referenced by ipe::PanTool::draw(), and ipe::Thumbnail::Thumbnail().
- -const TextPadding * Cascade::findTextPadding | -( | -) | -const | -
Find text padding (for text bbox computation).
- -Referenced by ipe::BBoxPainter::doDrawText().
- -const StyleSheet::TitleStyle * Cascade::findTitleStyle | -( | -) | -const | -
Get style of page titles (or 0 if none defined).
- -Referenced by ipe::Page::applyTitleStyle().
- -const StyleSheet::PageNumberStyle * Cascade::findPageNumberStyle | -( | -) | -const | -
Return style of page numbering (or 0 if none defined).
- -String Cascade::findPreamble | -( | -) | -const | -
Return total LaTeX preamble (of the whole cascade).
- -TLineCap Cascade::lineCap | -( | -) | -const | -
References ipe::EButtCap, and ipe::EDefaultCap.
- -Referenced by ipe::Painter::Painter(), and ipe::PdfPainter::PdfPainter().
- -TLineJoin Cascade::lineJoin | -( | -) | -const | -
References ipe::EDefaultJoin, and ipe::ERoundJoin.
- -Referenced by ipe::Painter::Painter(), and ipe::PdfPainter::PdfPainter().
- -TFillRule Cascade::fillRule | -( | -) | -const | -
References ipe::EDefaultRule, and ipe::EEvenOddRule.
- -Referenced by ipe::Painter::Painter().
- -void Cascade::allNames | -( | -Kind | -kind, | -
- | - | AttributeSeq & | -seq | -
- | ) | -const | -
References ipe::Attribute::NORMAL().
- -Referenced by ipe::Document::runLatex().
- -int Cascade::findDefinition | -( | -Kind | -kind, | -
- | - | Attribute | -sym | -
- | ) | -const | -
Find stylesheet defining the attribute.
-This method goes through the cascade looking for a definition of the symbolic attribute sym. It returns the index of the stylesheet defining the attribute, or -1 if the attribute is not defined.
-The method panics if sym is not symbolic. It also works for ESymbol, EGradient, ETiling, and EEffect.
- -References ipe::Attribute::isSymbolic().
- -Referenced by ipe::Object::checkSymbol().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Cascade, including all inherited members.
-allNames(Kind kind, AttributeSeq &seq) const | ipe::Cascade | |
Cascade() | ipe::Cascade | |
Cascade(const Cascade &rhs) | ipe::Cascade | |
count() const | ipe::Cascade | inline |
fillRule() const | ipe::Cascade | |
find(Kind, Attribute sym) const | ipe::Cascade | |
findDefinition(Kind kind, Attribute sym) const | ipe::Cascade | |
findEffect(Attribute sym) const | ipe::Cascade | |
findGradient(Attribute sym) const | ipe::Cascade | |
findLayout() const | ipe::Cascade | |
findPageNumberStyle() const | ipe::Cascade | |
findPreamble() const | ipe::Cascade | |
findSymbol(Attribute sym) const | ipe::Cascade | |
findTextPadding() const | ipe::Cascade | |
findTiling(Attribute sym) const | ipe::Cascade | |
findTitleStyle() const | ipe::Cascade | |
has(Kind kind, Attribute sym) const | ipe::Cascade | |
insert(int index, StyleSheet *sheet) | ipe::Cascade | |
lineCap() const | ipe::Cascade | |
lineJoin() const | ipe::Cascade | |
operator=(const Cascade &rhs) | ipe::Cascade | |
remove(int index) | ipe::Cascade | |
saveAsXml(Stream &stream) const | ipe::Cascade | |
sheet(int index) | ipe::Cascade | inline |
sheet(int index) const | ipe::Cascade | inline |
~Cascade() | ipe::Cascade |
- Ipelib
-
- |
-
#include <ipeshape.h>
Inherits ipe::SubPath.
--Public Member Functions | |
ClosedSpline (const std::vector< Vector > &v) | |
virtual Type | type () const |
virtual const ClosedSpline * | asClosedSpline () const |
void | beziers (std::vector< Bezier > &bez) const |
virtual void | save (Stream &stream) const |
virtual void | draw (Painter &painter) const |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
Public Member Functions inherited from ipe::SubPath | |
virtual | ~SubPath ()=0 |
virtual bool | closed () const |
virtual const Ellipse * | asEllipse () const |
virtual const Curve * | asCurve () const |
-Public Attributes | |
std::vector< Vector > | iCP |
-Additional Inherited Members | |
Public Types inherited from ipe::SubPath | |
enum | Type { ECurve, -EEllipse, -EClosedSpline - } |
A closed B-spline curve.
-ClosedSpline::ClosedSpline | -( | -const std::vector< Vector > & | -v | ) | -- |
-
|
- -virtual | -
Return type of this subpath.
- -Implements ipe::SubPath.
- -References ipe::SubPath::EClosedSpline.
- -
-
|
- -virtual | -
Return this object as an ClosedSpline, or nullptr if it's not a closed spline.
- -Reimplemented from ipe::SubPath.
- -void ClosedSpline::beziers | -( | -std::vector< Bezier > & | -bez | ) | -const | -
References ipe::Bezier::closedSpline().
- -
-
|
- -virtual | -
-
|
- -virtual | -
Draw subpath (does not call drawPath()).
- -Implements ipe::SubPath.
- -References ipe::Painter::closePath(), ipe::Painter::curveTo(), and ipe::Painter::moveTo().
- -
-
|
- -virtual | -
Add subpath to box.
- -Implements ipe::SubPath.
- -References ipe::Rect::addPoint(), and ipe::Rect::addRect().
- -
-
|
- -virtual | -
Return distance from v to subpath transformed by m.
- -Implements ipe::SubPath.
- -References ipe::Ellipse::distance().
- -
-
|
- -virtual | -
Snap to vertex.
- -Implements ipe::SubPath.
- -std::vector<Vector> ipe::ClosedSpline::iCP | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::ClosedSpline, including all inherited members.
-addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::ClosedSpline | virtual |
asClosedSpline() const | ipe::ClosedSpline | virtual |
asCurve() const | ipe::SubPath | virtual |
asEllipse() const | ipe::SubPath | virtual |
beziers(std::vector< Bezier > &bez) const | ipe::ClosedSpline | |
closed() const | ipe::SubPath | virtual |
ClosedSpline(const std::vector< Vector > &v) | ipe::ClosedSpline | |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::ClosedSpline | virtual |
draw(Painter &painter) const | ipe::ClosedSpline | virtual |
EClosedSpline enum value | ipe::SubPath | |
ECurve enum value | ipe::SubPath | |
EEllipse enum value | ipe::SubPath | |
iCP | ipe::ClosedSpline | |
save(Stream &stream) const | ipe::ClosedSpline | virtual |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::ClosedSpline | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const | ipe::ClosedSpline | virtual |
type() const | ipe::ClosedSpline | virtual |
Type enum name | ipe::SubPath | |
~SubPath()=0 | ipe::SubPath | pure virtual |
- Ipelib
-
- |
-
#include <ipeattributes.h>
-Public Member Functions | |
Color () | |
Color (String str) | |
Color (int r, int g, int b) | |
void | save (Stream &stream) const |
void | saveRGB (Stream &stream) const |
bool | isGray () const |
bool | operator== (const Color &rhs) const |
bool | operator!= (const Color &rhs) const |
-Public Attributes | |
Fixed | iRed |
Fixed | iGreen |
Fixed | iBlue |
-Related Functions | |
(Note that these are not member functions.) - | |
Stream & | operator<< (Stream &stream, const Color &attr) |
An absolute RGB color.
-
-
|
- -inline | -
Default constructor.
- -References isGray(), operator==(), save(), and saveRGB().
- -Referenced by ipe::Attribute::makeColor().
- -
-
|
- -explicit | -
Construct a color from a string.
-If only a single number is given, this is a gray value, otherwise red, green, and blue components must be given.
- -References ipe::Lex::eos(), iBlue, iGreen, and iRed.
- -
-
|
- -explicit | -
Construct a color.
-Arguments red, green, blue range from 0 to 1000.
- -References ipe::Fixed::fromInternal(), iBlue, iGreen, and iRed.
- -void Color::save | -( | -Stream & | -stream | ) | -const | -
void Color::saveRGB | -( | -Stream & | -stream | ) | -const | -
Save to stream in long format.
-The RGB components are saved separately even for gray colors.
- -References iBlue, iGreen, and iRed.
- -Referenced by Color(), and ipe::PdfPainter::drawAttributes().
- -bool Color::isGray | -( | -) | -const | -
is it an absolute gray value?
- -References iBlue, iGreen, and iRed.
- -Referenced by Color(), ipe::Latex::createLatexSource(), ipe::PdfPainter::drawColor(), and save().
- -bool Color::operator== | -( | -const Color & | -rhs | ) | -const | -
References ipe::Effect::Effect(), iBlue, iGreen, and iRed.
- -Referenced by Color().
- -
-
|
- -inline | -
-
|
- -related | -
References save().
- -Fixed ipe::Color::iRed | -
Referenced by ipe::Attribute::Attribute(), Color(), ipe::Attribute::color(), ipe::Latex::createLatexSource(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), ipe::PdfPainter::drawColor(), isGray(), operator==(), ipe::QIpe(), ipe::PdfViewBase::refreshSurface(), save(), saveRGB(), and ipe::Canvas::sizeHint().
- -Fixed ipe::Color::iGreen | -
Referenced by ipe::Attribute::Attribute(), Color(), ipe::Attribute::color(), ipe::Latex::createLatexSource(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), isGray(), operator==(), ipe::QIpe(), ipe::PdfViewBase::refreshSurface(), save(), saveRGB(), and ipe::Canvas::sizeHint().
- -Fixed ipe::Color::iBlue | -
Referenced by ipe::Attribute::Attribute(), Color(), ipe::Attribute::color(), ipe::Latex::createLatexSource(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), isGray(), operator==(), ipe::QIpe(), ipe::PdfViewBase::refreshSurface(), save(), saveRGB(), and ipe::Canvas::sizeHint().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Color, including all inherited members.
-Color() | ipe::Color | inline |
Color(String str) | ipe::Color | explicit |
Color(int r, int g, int b) | ipe::Color | explicit |
iBlue | ipe::Color | |
iGreen | ipe::Color | |
iRed | ipe::Color | |
isGray() const | ipe::Color | |
operator!=(const Color &rhs) const | ipe::Color | inline |
operator<<(Stream &stream, const Color &attr) | ipe::Color | related |
operator==(const Color &rhs) const | ipe::Color | |
save(Stream &stream) const | ipe::Color | |
saveRGB(Stream &stream) const | ipe::Color |
- Ipelib
-
- |
-
#include <ipeshape.h>
Inherits ipe::SubPath.
--Public Member Functions | |
Curve () | |
virtual Type | type () const |
virtual bool | closed () const |
virtual const Curve * | asCurve () const |
virtual void | save (Stream &stream) const |
virtual void | draw (Painter &painter) const |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
int | countSegments () const |
int | countSegmentsClosing () const |
CurveSegment | segment (int i) const |
CurveSegment | closingSegment () const |
void | appendSegment (const Vector &v0, const Vector &v1) |
void | appendArc (const Matrix &m, const Vector &v0, const Vector &v1) |
void | appendSpline (const std::vector< Vector > &v) |
void | appendOldSpline (const std::vector< Vector > &v) |
void | appendCardinalSpline (const std::vector< Vector > &v, float tension) |
void | appendSpiroSpline (const std::vector< Vector > &v) |
void | appendSpiroSplinePrecomputed (const std::vector< Vector > &v, int sep) |
void | setClosed (bool closed) |
Public Member Functions inherited from ipe::SubPath | |
virtual | ~SubPath ()=0 |
virtual const Ellipse * | asEllipse () const |
virtual const ClosedSpline * | asClosedSpline () const |
-Friends | |
class | CurveSegment |
-Additional Inherited Members | |
Public Types inherited from ipe::SubPath | |
enum | Type { ECurve, -EEllipse, -EClosedSpline - } |
Subpath consisting of a sequence of CurveSegment's.
-Curve::Curve | -( | -) | -- |
Create an empty, open subpath.
- -Referenced by ipe::CurveSegment::snapBnd().
- -
-
|
- -virtual | -
Return type of this subpath.
- -Implements ipe::SubPath.
- -
-
|
- -inlinevirtual | -
Is this subpath closed?
-Default implementation returns true
.
Reimplemented from ipe::SubPath.
- -References ipe::CurveSegment::addToBBox(), ipe::CurveSegment::cp(), ipe::CurveSegment::distance(), ipe::CurveSegment::draw(), ipe::CurveSegment::snapBnd(), and ipe::CurveSegment::snapVtx().
- -
-
|
- -virtual | -
Return this object as an Curve, or else nullptr.
- -Reimplemented from ipe::SubPath.
- -
-
|
- -virtual | -
Save subpath to XML stream.
- -Implements ipe::SubPath.
- -References ipe::CurveSegment::EArc, ipe::CurveSegment::ECardinalSpline, ipe::CurveSegment::EOldSpline, ipe::CurveSegment::ESegment, ipe::CurveSegment::ESpiroSpline, and ipe::CurveSegment::ESpline.
- -
-
|
- -virtual | -
Draw subpath (does not call drawPath()).
- -Implements ipe::SubPath.
- -References ipe::Painter::closePath(), and ipe::Painter::moveTo().
- -
-
|
- -virtual | -
Add subpath to box.
- -Implements ipe::SubPath.
- -
-
|
- -virtual | -
Return distance from v to subpath transformed by m.
- -Implements ipe::SubPath.
- -
-
|
- -virtual | -
Snap to vertex.
- -Implements ipe::SubPath.
- -
-
|
- -virtual | -
Snap to boundary of subpath.
- -Implements ipe::SubPath.
- -
-
|
- -inline | -
Return number of segments. This does not include the closing segment for a closed path.
- -Referenced by ipe::Path::clone(), and ipe::Shape::isSegment().
- -
-
|
- -inline | -
Return number of segments including the closing segment.
- -CurveSegment Curve::segment | -( | -int | -i | ) | -const | -
Return segment.
-If i is negative, elements from the end are returned. If i == countSegments(), the closing segment of a closed path is returned.
- -Referenced by ipe::Path::clone(), ipe::Path::draw(), and ipe::Shape::isSegment().
- -CurveSegment Curve::closingSegment | -( | -) | -const | -
Returns the closing segment of a closed path.
-This method panics if the Curve is not closed.
- -References ipe::SubPath::~SubPath().
- -void Curve::appendSegment | -( | -const Vector & | -v0, | -
- | - | const Vector & | -v1 | -
- | ) | -- |
Append a straight segment to the subpath.
- -References ipe::CurveSegment::ESegment.
- -Referenced by ipe::Shape::load(), and ipe::Shape::Shape().
- -void Curve::appendArc | -( | -const Matrix & | -m, | -
- | - | const Vector & | -v0, | -
- | - | const Vector & | -v1 | -
- | ) | -- |
Append elliptic arc to the subpath.
- -References appendSpline(), ipe::CurveSegment::EArc, ipe::CurveSegment::ECardinalSpline, ipe::CurveSegment::EOldSpline, ipe::CurveSegment::ESpline, and ipe::size().
- -Referenced by ipe::Shape::load(), and ipe::Shape::Shape().
- -
-
|
- -inline | -
References ipe::CurveSegment::ESpline.
- -Referenced by appendArc(), and ipe::Shape::load().
- -
-
|
- -inline | -
References ipe::CurveSegment::EOldSpline, and ipe::CurveSegment::tension().
- -Referenced by ipe::Shape::load().
- -void Curve::appendCardinalSpline | -( | -const std::vector< Vector > & | -v, | -
- | - | float | -tension | -
- | ) | -- |
Append a cardinal spline curve.
- -References ipe::CurveSegment::ECardinalSpline.
- -Referenced by ipe::Shape::load().
- -void Curve::appendSpiroSpline | -( | -const std::vector< Vector > & | -v | ) | -- |
Append a spiro spline curve.
- -References ipe::CurveSegment::ESpiroSpline, ipe::size(), and ipe::Bezier::spiroSpline().
- -Referenced by ipe::Shape::load().
- -void Curve::appendSpiroSplinePrecomputed | -( | -const std::vector< Vector > & | -v, | -
- | - | int | -sep | -
- | ) | -- |
Append a spiro spline curve with precomputed Bezier control points.
- -References ipe::CurveSegment::ESpiroSpline, and ipe::size().
- -Referenced by ipe::Shape::load().
- -void Curve::setClosed | -( | -bool | -closed | ) | -- |
Set whether subpath is closed or not.
-Must be called after all segments have been added to the path.
- -Referenced by ipe::Shape::load(), and ipe::Shape::Shape().
- -
-
|
- -friend | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Curve, including all inherited members.
-addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::Curve | virtual |
appendArc(const Matrix &m, const Vector &v0, const Vector &v1) | ipe::Curve | |
appendCardinalSpline(const std::vector< Vector > &v, float tension) | ipe::Curve | |
appendOldSpline(const std::vector< Vector > &v) | ipe::Curve | inline |
appendSegment(const Vector &v0, const Vector &v1) | ipe::Curve | |
appendSpiroSpline(const std::vector< Vector > &v) | ipe::Curve | |
appendSpiroSplinePrecomputed(const std::vector< Vector > &v, int sep) | ipe::Curve | |
appendSpline(const std::vector< Vector > &v) | ipe::Curve | inline |
asClosedSpline() const | ipe::SubPath | virtual |
asCurve() const | ipe::Curve | virtual |
asEllipse() const | ipe::SubPath | virtual |
closed() const | ipe::Curve | inlinevirtual |
closingSegment() const | ipe::Curve | |
countSegments() const | ipe::Curve | inline |
countSegmentsClosing() const | ipe::Curve | inline |
Curve() | ipe::Curve | |
CurveSegment class | ipe::Curve | friend |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::Curve | virtual |
draw(Painter &painter) const | ipe::Curve | virtual |
EClosedSpline enum value | ipe::SubPath | |
ECurve enum value | ipe::SubPath | |
EEllipse enum value | ipe::SubPath | |
save(Stream &stream) const | ipe::Curve | virtual |
segment(int i) const | ipe::Curve | |
setClosed(bool closed) | ipe::Curve | |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Curve | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const | ipe::Curve | virtual |
Type enum name | ipe::SubPath | |
type() const | ipe::Curve | virtual |
~SubPath()=0 | ipe::SubPath | pure virtual |
- Ipelib
-
- |
-
#include <ipeshape.h>
-Public Types | |
enum | Type { - EArc, -ESegment, -ESpline, -EOldSpline, - - ECardinalSpline, -ESpiroSpline - - } |
-Public Member Functions | |
Type | type () const |
int | countCP () const |
Vector | cp (int i) const |
Vector | last () const |
Matrix | matrix () const |
float | tension () const |
Arc | arc () const |
void | beziers (std::vector< Bezier > &bez) const |
void | draw (Painter &painter) const |
void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
double | distance (const Vector &v, const Matrix &m, double bound) const |
void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const |
void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
-Friends | |
class | Curve |
A segment on an SubPath.
-A segment is either an elliptic arc, a straight segment, or a spline curve, depending on its type(). This is a lightweight object, created on the fly by Curve::segment(). There is no public constructor, so the only way to create such an object is through that method.
-The type() is one of the following:
-ESegment:
the segment has two control points, and represents a line segment.ESpline:
a B-spline curve with n control points. The first and last control point's knot value is repeated three times, so the curve begins and ends in these points. A spline with 4 control points is a single Bezier curve with those control points. A spline with 3 control points is defined to be a quadratic Bezier curve with those control points.ECardinalSpline:
a cardinal spline curve with n control points. The curve passes through the control points in the given order. The tension is currently fixed at 0.5.ESpiroSpline:
a clothoid spline curve with n control points, computed using Raph Levien's spiro code (through libspiro).EOldSpline:
an incorrectly defined B-spline, used by Ipe for many years. Supported for compatibility.EArc:
an elliptic arc, with begin and end point. The supporting ellipse is defined by the matrix(), it is the image under the affine transformation matrix() of the unit circle. matrix() is such that its inverse transforms both start and end position to points (nearly) on the unit circle. The arc is the image of the positively (counter-clockwise) directed arc from the pre-image of the start position to the pre-image of the end position. Whether this is a positively or negatively oriented arc in user space depends on the matrix. enum ipe::CurveSegment::Type | -
-
|
- -inline | -
Type of segment.
- -Referenced by ipe::Path::clone(), and ipe::Shape::isSegment().
- -
-
|
- -inline | -
Number of control points.
- -Referenced by ipe::Path::clone().
- -
-
|
- -inline | -
Return control point.
- -References addToBBox(), arc(), beziers(), distance(), draw(), last(), matrix(), snapBnd(), snapVtx(), and tension().
- -Referenced by ipe::Path::clone(), ipe::Curve::closed(), and ipe::Ellipse::matrix().
- -
-
|
- -inline | -
Return last control point.
- -Referenced by ipe::Path::clone(), and cp().
- -
-
|
- -inline | -
Referenced by ipe::Path::clone(), cp(), and ipe::Path::draw().
- -float CurveSegment::tension | -( | -) | -const | -
Tension (if Type() == ECardinalSpline)
-Panics if segment is not a cardinal spline.
- -References ipe::ECardinalSpline.
- -Referenced by ipe::Curve::appendOldSpline(), and cp().
- -Arc CurveSegment::arc | -( | -) | -const | -
void CurveSegment::beziers | -( | -std::vector< Bezier > & | -bez | ) | -const | -
Convert spline curve to a sequence of Bezier splines.
- -References ipe::Bezier::cardinalSpline(), ipe::ECardinalSpline, ipe::ESpiroSpline, ipe::Bezier::oldSpline(), and ipe::Bezier::spline().
- -Referenced by cp().
- -void CurveSegment::draw | -( | -Painter & | -painter | ) | -const | -
Draw the segment.
-Current position of the painter is already on first control point.
- -References ipe::Painter::curveTo(), ipe::Painter::drawArc(), ipe::ECardinalSpline, ipe::ESpiroSpline, and ipe::Painter::lineTo().
- -Referenced by ipe::Curve::closed(), cp(), ipe::Ellipse::matrix(), and ipe::Shape::subPath().
- -void CurveSegment::addToBBox | -( | -Rect & | -box, | -
- | - | const Matrix & | -m, | -
- | - | bool | -cpf | -
- | ) | -const | -
Add segment to bounding box.
-Does not assume that first control point has already been added.
-If cpf is true, then control points of splines, Bezier curves, and the center of arcs are included in the bbox (so that snapping can find them). Otherwise, a tight bounding box for the geometric object itself is computed.
- -References ipe::Rect::addPoint(), ipe::Rect::addRect(), ipe::ECardinalSpline, and ipe::ESpiroSpline.
- -Referenced by ipe::Curve::closed(), cp(), and ipe::Ellipse::matrix().
- -double CurveSegment::distance | -( | -const Vector & | -v, | -
- | - | const Matrix & | -m, | -
- | - | double | -bound | -
- | ) | -const | -
Return distance to the segment.
- -References ipe::Segment::distance(), ipe::ECardinalSpline, and ipe::ESpiroSpline.
- -Referenced by ipe::Curve::closed(), cp(), and ipe::Ellipse::matrix().
- -void CurveSegment::snapVtx | -( | -const Vector & | -mouse, | -
- | - | const Matrix & | -m, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound, | -
- | - | bool | -ctl | -
- | ) | -const | -
Snap to vertex of the segment.
-The method assumes that the first control point has already been tested.
- -References ipe::ECardinalSpline, and ipe::ESpiroSpline.
- -Referenced by ipe::Curve::closed(), cp(), and ipe::Ellipse::matrix().
- -void CurveSegment::snapBnd | -( | -const Vector & | -mouse, | -
- | - | const Matrix & | -m, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
References ipe::Curve::Curve(), ipe::Arc::distance(), ipe::ECardinalSpline, ipe::ESpiroSpline, and ipe::Segment::snap().
- -Referenced by ipe::Curve::closed(), cp(), and ipe::Ellipse::matrix().
- -
-
|
- -friend | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::CurveSegment, including all inherited members.
-addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::CurveSegment | |
arc() const | ipe::CurveSegment | |
beziers(std::vector< Bezier > &bez) const | ipe::CurveSegment | |
countCP() const | ipe::CurveSegment | inline |
cp(int i) const | ipe::CurveSegment | inline |
Curve class | ipe::CurveSegment | friend |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::CurveSegment | |
draw(Painter &painter) const | ipe::CurveSegment | |
EArc enum value | ipe::CurveSegment | |
ECardinalSpline enum value | ipe::CurveSegment | |
EOldSpline enum value | ipe::CurveSegment | |
ESegment enum value | ipe::CurveSegment | |
ESpiroSpline enum value | ipe::CurveSegment | |
ESpline enum value | ipe::CurveSegment | |
last() const | ipe::CurveSegment | inline |
matrix() const | ipe::CurveSegment | inline |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::CurveSegment | |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const | ipe::CurveSegment | |
tension() const | ipe::CurveSegment | |
Type enum name | ipe::CurveSegment | |
type() const | ipe::CurveSegment | inline |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherited by ipe::A85Source, ipe::Base64Source, ipe::BufferSource, ipe::FileSource, ipe::InflateSource, and StandardStyleSource.
--Public Member Functions | |
virtual | ~DataSource ()=0 |
virtual int | getChar ()=0 |
virtual int | length () const |
virtual void | setPosition (int pos) |
virtual int | position () const |
Interface for getting data for parsing.
-
-
|
- -pure virtual | -
Pure virtual destructor.
- -Referenced by ipe::FileStream::tell().
- -
-
|
- -pure virtual | -
Get one more character, or EOF.
- -Implemented in ipe::BufferSource, ipe::FileSource, ipe::InflateSource, ipe::Base64Source, and ipe::A85Source.
- -Referenced by ipe::Document::Document(), ipe::A85Source::getChar(), ipe::Base64Source::getChar(), ipe::PdfParser::getTrailer(), and ipe::InflateSource::~InflateSource().
- -
-
|
- -virtual | -
Return length of input stream in characters.
-Returns -1 if the stream is not seekable. Calling this function will invalidate the current position.
- -Reimplemented in ipe::BufferSource, and ipe::FileSource.
- -Referenced by ipe::PdfParser::getTrailer().
- -
-
|
- -virtual | -
Set position in stream.
-Does nothing if the stream is not seekable.
- -Reimplemented in ipe::BufferSource, and ipe::FileSource.
- -Referenced by ipe::PdfParser::getTrailer().
- -
-
|
- -virtual | -
Return position in stream.
-Returns -1 if the stream is not seekable.
- -Reimplemented in ipe::BufferSource, and ipe::FileSource.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::DataSource, including all inherited members.
-getChar()=0 | ipe::DataSource | pure virtual |
length() const | ipe::DataSource | virtual |
position() const | ipe::DataSource | virtual |
setPosition(int pos) | ipe::DataSource | virtual |
~DataSource()=0 | ipe::DataSource | pure virtual |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::Stream.
--Public Member Functions | |
DeflateStream (Stream &stream, int level) | |
virtual | ~DeflateStream () |
virtual void | putChar (char ch) |
virtual void | close () |
Public Member Functions inherited from ipe::Stream | |
virtual | ~Stream () |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
-Static Public Member Functions | |
static Buffer | deflate (const char *data, int size, int &deflatedSize, int compressLevel) |
Filter stream adding flate compression.
-DeflateStream::DeflateStream | -( | -Stream & | -stream, | -
- | - | int | -level | -
- | ) | -- |
-
|
- -virtual | -
-
|
- -virtual | -
Output character.
- -Implements ipe::Stream.
- -References ipe::Buffer::data(), deflate(), ipe::Stream::putRaw(), and ipe::Buffer::size().
- -
-
|
- -virtual | -
Close the stream. No more writing allowed!
- -Reimplemented from ipe::Stream.
- -References ipe::Stream::close(), ipe::Buffer::data(), deflate(), ipe::Stream::putRaw(), and ipe::Buffer::size().
- -Referenced by ipe::PdfWriter::createPageView(), and ipe::Document::save().
- -
-
|
- -static | -
Deflate a buffer in a single run.
-The returned buffer may be larger than necessary: deflatedSize is set to the number of bytes actually used.
- -References ipe::Buffer::data().
- -Referenced by close(), ipe::Bitmap::embed(), putChar(), and ipe::PdfWriter::~PdfWriter().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::DeflateStream, including all inherited members.
-close() | ipe::DeflateStream | virtual |
deflate(const char *data, int size, int &deflatedSize, int compressLevel) | ipe::DeflateStream | static |
DeflateStream(Stream &stream, int level) | ipe::DeflateStream | |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch) | ipe::DeflateStream | virtual |
putCString(const char *s) | ipe::Stream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::Stream | virtual |
putString(String s) | ipe::Stream | virtual |
putXmlString(String s) | ipe::Stream | |
~DeflateStream() | ipe::DeflateStream | virtual |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipedoc.h>
-Classes | |
struct | SProperties |
-Public Types | |
enum | LoadErrors { EVersionTooOld = -1, -EVersionTooRecent = -2, -EFileOpenError = -3, -ENotAnIpeFile = -4 - } |
enum | { - ErrNone, -ErrNoText, -ErrNoDir, -ErrWritingSource, - - ErrRunLatex, -ErrLatex, -ErrLatexOutput - - } |
-Public Member Functions | |
Document () | |
Document (const Document &rhs) | |
Document & | operator= (const Document &rhs)=delete |
~Document () | |
bool | save (TellStream &stream, FileFormat format, uint32_t flags) const |
bool | save (const char *fname, FileFormat format, uint32_t flags) const |
bool | exportPages (const char *fname, uint32_t flags, int fromPage, int toPage) const |
bool | exportView (const char *fname, FileFormat format, uint32_t flags, int pno, int vno) const |
void | saveAsXml (Stream &stream, bool usePdfBitmaps=false) const |
int | countPages () const |
int | countTotalViews () const |
const Page * | page (int no) const |
Page * | page (int no) |
int | findPage (String nameOrNumber) const |
Page * | set (int no, Page *page) |
void | insert (int no, Page *page) |
void | push_back (Page *page) |
Page * | remove (int no) |
SProperties | properties () const |
void | setProperties (const SProperties &info) |
Cascade * | cascade () |
const Cascade * | cascade () const |
Cascade * | replaceCascade (Cascade *cascade) |
void | setResources (PdfResources *resources) |
const PdfResources * | resources () const noexcept |
void | findBitmaps (BitmapFinder &bm) const |
bool | checkStyle (AttributeSeq &seq) const |
int | runLatex (String docname, String &logFile) |
int | runLatex (String docname) |
-Static Public Member Functions | |
static FileFormat | fileFormat (DataSource &source) |
static FileFormat | formatFromFilename (String fn) |
static Document * | load (DataSource &source, FileFormat format, int &reason) |
static Document * | load (const char *fname, int &reason) |
static Document * | loadWithErrorReport (const char *fname) |
The model for an Ipe document.
-The Document class represents the contents of an Ipe document, and all the methods necessary to load, save, and modify it.
-enum ipe::Document::LoadErrors | -
anonymous enum | -
Document::Document | -( | -) | -- |
Construct an empty document for filling by a client.
-As constructed, it has no pages, A4 media, and only the standard style sheet.
- -References ipe::Cascade::insert(), and ipe::StyleSheet::standard().
- -Referenced by formatFromFilename().
- -Document::Document | -( | -const Document & | -rhs | ) | -- |
Copy constructor.
- -References countPages(), ipe::DataSource::getChar(), and page().
- -Document::~Document | -( | -) | -- |
Destructor.
- -References countPages(), and page().
- -
-
|
- -delete | -
-
|
- -static | -
Determine format of file in source.
- -References ipe::Pdf, ipe::String::substr(), ipe::Unknown, and ipe::Xml.
- -Referenced by load().
- -
-
|
- -static | -
Determine format of file from filename fn.
- -References ipe::PdfFile::catalog(), ipe::PdfDict::deflated(), ipe::PdfObj::dict(), Document(), ENotAnIpeFile, ipe::ImlParser::ESyntaxError, ipe::PdfDict::get(), ipe::PdfObj::name(), ipe::PdfFile::object(), ipe::PdfFile::parse(), ipe::ImlParser::parseDocument(), ipe::XmlParser::parsePosition(), ipe::Pdf, ipe::String::right(), ipe::String::size(), ipe::Buffer::size(), ipe::PdfDict::stream(), ipe::Unknown, ipe::PdfName::value(), and ipe::Xml.
- -
-
|
- -static | -
Construct a document from an input stream.
-Returns 0 if the stream couldn't be parsed, and a reason explaining that in reason. If reason is positive, it is a file (stream) offset where parsing failed. If reason is negative, it is an error code, see Document::LoadErrors.
- -References ENotAnIpeFile, ipe::Pdf, and ipe::Xml.
- -Referenced by load(), and loadWithErrorReport().
- -
-
|
- -static | -
References EFileOpenError, fileFormat(), ipe::Platform::fopen(), and load().
- -
-
|
- -static | -
References EFileOpenError, ENotAnIpeFile, EVersionTooOld, EVersionTooRecent, and load().
- -bool Document::save | -( | -TellStream & | -stream, | -
- | - | FileFormat | -format, | -
- | - | uint32_t | -flags | -
- | ) | -const | -
Save in a stream.
-Returns true if sucessful.
- -References ipe::DeflateStream::close(), ipe::PdfWriter::createBookmarks(), ipe::PdfWriter::createNamedDests(), ipe::PdfWriter::createPages(), ipe::PdfWriter::createTrailer(), ipe::PdfWriter::createXmlStream(), ipe::SaveFlag::Export, ipe::SaveFlag::NoZip, ipe::Pdf, saveAsXml(), and ipe::Xml.
- -Referenced by save().
- -bool Document::save | -( | -const char * | -fname, | -
- | - | FileFormat | -format, | -
- | - | uint32_t | -flags | -
- | ) | -const | -
References ipe::Platform::fopen(), and save().
- -bool Document::exportPages | -( | -const char * | -fname, | -
- | - | uint32_t | -flags, | -
- | - | int | -fromPage, | -
- | - | int | -toPage | -
- | ) | -const | -
Export a range of pages to PDF.
- -References ipe::PdfWriter::createPages(), ipe::PdfWriter::createTrailer(), ipe::Platform::fopen(), and ipe::SaveFlag::NoZip.
- -bool Document::exportView | -( | -const char * | -fname, | -
- | - | FileFormat | -format, | -
- | - | uint32_t | -flags, | -
- | - | int | -pno, | -
- | - | int | -vno | -
- | ) | -const | -
Export a single view to PDF.
- -References ipe::PdfWriter::createPageView(), ipe::PdfWriter::createTrailer(), ipe::Platform::fopen(), ipe::SaveFlag::NoZip, and ipe::Pdf.
- -void Document::saveAsXml | -( | -Stream & | -stream, | -
- | - | bool | -usePdfBitmaps = false |
-
- | ) | -const | -
Save in XML format into an Stream.
- -References countPages(), ipe::Default, ipe::FILE_FORMAT, findBitmaps(), ipe::BitmapFinder::iBitmaps, ipe::Luatex, ipe::Bitmap::objNum(), page(), ipe::Pdftex, ipe::Stream::putXmlString(), ipe::Page::saveAsXml(), ipe::Bitmap::saveAsXml(), and ipe::Xetex.
- -Referenced by save().
- -
-
|
- -inline | -
Return number of pages of document.
- -Referenced by checkStyle(), countTotalViews(), Document(), ipe::PageSelector::fill(), findBitmaps(), findPage(), runLatex(), saveAsXml(), and ~Document().
- -int Document::countTotalViews | -( | -) | -const | -
Return total number of views in all pages.
- -References countPages(), ipe::Page::countViews(), and page().
- -
-
|
- -inline | -
Return page (const version).
-The first page is no 0.
- -Referenced by checkStyle(), countTotalViews(), Document(), ipe::PageSelector::fill(), findBitmaps(), findPage(), insert(), runLatex(), saveAsXml(), set(), and ~Document().
- -
-
|
- -inline | -
Return page.
-The first page is no 0.
- -int Document::findPage | -( | -String | -s | ) | -const | -
Return page index given a section title or page number.
-Input page numbers are 1-based strings. Returns -1 if page not found.
- -References countPages(), ipe::String::empty(), ipe::Lex::getInt(), page(), and ipe::Page::section().
- -void Document::insert | -( | -int | -no, | -
- | - | Page * | -page | -
- | ) | -- |
void Document::push_back | -( | -Page * | -page | ) | -- |
Append a new page.
- -Referenced by ipe::ImlParser::parseDocument().
- -Page * Document::remove | -( | -int | -no | ) | -- |
Remove a page.
-Returns the page that has been removed.
- -
-
|
- -inline | -
Return document properties.
- -Referenced by ipe::ImlParser::parseDocument(), and runLatex().
- -void Document::setProperties | -( | -const SProperties & | -info | ) | -- |
Set document properties.
- -Referenced by ipe::ImlParser::parseDocument().
- -
-
|
- -inline | -
Return stylesheet cascade.
- -Referenced by checkStyle(), ipe::ImlParser::parseDocument(), ipe::Thumbnail::render(), runLatex(), ipe::Thumbnail::saveRender(), and ipe::Thumbnail::Thumbnail().
- -
-
|
- -inline | -
Return stylesheet cascade (const version).
- -Replace the entire style sheet cascade.
-Takes ownership of cascade, and returns the original cascade.
- -void Document::setResources | -( | -PdfResources * | -resources | ) | -- |
Update the PDF resources (after running latex).
-Takes ownership.
- -References resources().
- -Referenced by runLatex().
- -
-
|
- -inlinenoexcept | -
Return the current PDF resources.
- -Referenced by setResources().
- -void Document::findBitmaps | -( | -BitmapFinder & | -bm | ) | -const | -
Create a list of all bitmaps in the document.
- -References ipe::Object::accept(), countPages(), ipe::ESymbol, ipe::BitmapFinder::iBitmaps, ipe::Symbol::iObject, page(), and ipe::BitmapFinder::scanPage().
- -Referenced by saveAsXml().
- -bool Document::checkStyle | -( | -AttributeSeq & | -seq | ) | -const | -
Check all symbolic attributes in the document.
-This function verifies that all symbolic attributes in the document are defined in the style sheet. It appends to seq all symbolic attributes (in no particular order, but without duplicates) that are NOT defined.
-Returns true
if there are no undefined symbolic attributes in the document.
References cascade(), ipe::Object::checkStyle(), ipe::Page::count(), countPages(), ipe::Page::object(), and page().
- -Run PdfLatex or Xelatex.
- -References ipe::Latex::addPageNumber(), ipe::Cascade::allNames(), cascade(), countPages(), ipe::Page::countViews(), ipe::Latex::createLatexSource(), ipe::String::empty(), ErrLatex, ErrLatexOutput, ErrNoDir, ErrNone, ErrNoText, ErrRunLatex, ErrWritingSource, ipe::ESymbol, ipe::String::find(), ipe::Cascade::findSymbol(), ipe::Platform::fopen(), ipe::String::hasPrefix(), ipe::Symbol::iObject, ipe::Platform::latexDirectory(), page(), properties(), ipe::Platform::readFile(), ipe::Latex::readPdf(), ipe::Platform::runLatex(), ipe::Latex::scanObject(), ipe::Latex::scanPage(), setResources(), ipe::String::substr(), ipe::Latex::takeResources(), ipe::Latex::updateTextObjects(), and ipe::String::z().
- -Referenced by runLatex().
- -int Document::runLatex | -( | -String | -docname | ) | -- |
Run Pdflatex (suitable for console applications)
-Success/error is reported on stderr.
- -References ErrLatex, ErrLatexOutput, ErrNoDir, ErrNone, ErrNoText, ErrRunLatex, ErrWritingSource, and runLatex().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Document, including all inherited members.
-cascade() | ipe::Document | inline |
cascade() const | ipe::Document | inline |
checkStyle(AttributeSeq &seq) const | ipe::Document | |
countPages() const | ipe::Document | inline |
countTotalViews() const | ipe::Document | |
Document() | ipe::Document | |
Document(const Document &rhs) | ipe::Document | |
EFileOpenError enum value | ipe::Document | |
ENotAnIpeFile enum value | ipe::Document | |
ErrLatex enum value | ipe::Document | |
ErrLatexOutput enum value | ipe::Document | |
ErrNoDir enum value | ipe::Document | |
ErrNone enum value | ipe::Document | |
ErrNoText enum value | ipe::Document | |
ErrRunLatex enum value | ipe::Document | |
ErrWritingSource enum value | ipe::Document | |
EVersionTooOld enum value | ipe::Document | |
EVersionTooRecent enum value | ipe::Document | |
exportPages(const char *fname, uint32_t flags, int fromPage, int toPage) const | ipe::Document | |
exportView(const char *fname, FileFormat format, uint32_t flags, int pno, int vno) const | ipe::Document | |
fileFormat(DataSource &source) | ipe::Document | static |
findBitmaps(BitmapFinder &bm) const | ipe::Document | |
findPage(String nameOrNumber) const | ipe::Document | |
formatFromFilename(String fn) | ipe::Document | static |
insert(int no, Page *page) | ipe::Document | |
load(DataSource &source, FileFormat format, int &reason) | ipe::Document | static |
load(const char *fname, int &reason) | ipe::Document | static |
LoadErrors enum name | ipe::Document | |
loadWithErrorReport(const char *fname) | ipe::Document | static |
operator=(const Document &rhs)=delete | ipe::Document | |
page(int no) const | ipe::Document | inline |
page(int no) | ipe::Document | inline |
properties() const | ipe::Document | inline |
push_back(Page *page) | ipe::Document | |
remove(int no) | ipe::Document | |
replaceCascade(Cascade *cascade) | ipe::Document | |
resources() const noexcept | ipe::Document | inline |
runLatex(String docname, String &logFile) | ipe::Document | |
runLatex(String docname) | ipe::Document | |
save(TellStream &stream, FileFormat format, uint32_t flags) const | ipe::Document | |
save(const char *fname, FileFormat format, uint32_t flags) const | ipe::Document | |
saveAsXml(Stream &stream, bool usePdfBitmaps=false) const | ipe::Document | |
set(int no, Page *page) | ipe::Document | |
setProperties(const SProperties &info) | ipe::Document | |
setResources(PdfResources *resources) | ipe::Document | |
~Document() | ipe::Document |
- Ipelib
-
- |
-
#include <ipeshape.h>
Inherits ipe::SubPath.
--Public Member Functions | |
Ellipse (const Matrix &m) | |
virtual Type | type () const |
virtual const Ellipse * | asEllipse () const |
Matrix | matrix () const |
virtual void | save (Stream &stream) const |
virtual void | draw (Painter &painter) const |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
Public Member Functions inherited from ipe::SubPath | |
virtual | ~SubPath ()=0 |
virtual bool | closed () const |
virtual const ClosedSpline * | asClosedSpline () const |
virtual const Curve * | asCurve () const |
-Additional Inherited Members | |
Public Types inherited from ipe::SubPath | |
enum | Type { ECurve, -EEllipse, -EClosedSpline - } |
An ellipse subpath.
-Ellipse::Ellipse | -( | -const Matrix & | -m | ) | -- |
Referenced by ipe::Shape::load(), and ipe::Shape::Shape().
- -
-
|
- -virtual | -
Return type of this subpath.
- -Implements ipe::SubPath.
- -References ipe::SubPath::EEllipse.
- -Referenced by ipe::Shape::load().
- -
-
|
- -virtual | -
Return this object as an Ellipse, or nullptr if it's not an ellipse.
- -Reimplemented from ipe::SubPath.
- -
-
|
- -inline | -
Return matrix that transforms unit circle to the ellipse.
- -References ipe::CurveSegment::addToBBox(), ipe::CurveSegment::cp(), ipe::CurveSegment::distance(), ipe::CurveSegment::draw(), ipe::CurveSegment::snapBnd(), and ipe::CurveSegment::snapVtx().
- -Referenced by save().
- -
-
|
- -virtual | -
-
|
- -virtual | -
Draw subpath (does not call drawPath()).
- -Implements ipe::SubPath.
- -References ipe::Painter::drawArc().
- -
-
|
- -virtual | -
Return distance from v to subpath transformed by m.
- -Implements ipe::SubPath.
- -References ipe::Arc::distance().
- -Referenced by ipe::ClosedSpline::distance().
- -
-
|
- -virtual | -
snaps to center of ellipse.
- -Implements ipe::SubPath.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Ellipse, including all inherited members.
-addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::Ellipse | virtual |
asClosedSpline() const | ipe::SubPath | virtual |
asCurve() const | ipe::SubPath | virtual |
asEllipse() const | ipe::Ellipse | virtual |
closed() const | ipe::SubPath | virtual |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::Ellipse | virtual |
draw(Painter &painter) const | ipe::Ellipse | virtual |
EClosedSpline enum value | ipe::SubPath | |
ECurve enum value | ipe::SubPath | |
EEllipse enum value | ipe::SubPath | |
Ellipse(const Matrix &m) | ipe::Ellipse | |
matrix() const | ipe::Ellipse | inline |
save(Stream &stream) const | ipe::Ellipse | virtual |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Ellipse | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const | ipe::Ellipse | virtual |
type() const | ipe::Ellipse | virtual |
Type enum name | ipe::SubPath | |
~SubPath()=0 | ipe::SubPath | pure virtual |
- Ipelib
-
- |
-
#include <ipefonts.h>
-Public Member Functions | |
Face (const PdfDict *d, const PdfResourceBase *resources) noexcept | |
~Face () noexcept | |
bool | matches (const PdfDict *d) const noexcept |
FontType | type () const noexcept |
int | width (int ch) const noexcept |
int | glyphIndex (int ch) noexcept |
cairo_font_face_t * | cairoFont () noexcept |
A typeface (aka font), actually loaded (from a font file or PDF file).
-
-
|
- -noexcept | -
References ipe::PdfObj::array(), ipe::CIDType0, ipe::CIDType2, ipe::Buffer::data(), ipe::PdfObj::dict(), ipe::PdfObj::name(), ipe::PdfArray::obj(), ipe::PdfObj::ref(), ipe::Buffer::size(), ipe::Truetype, ipe::Type1, ipe::Type3, ipe::Unsupported, ipe::PdfName::value(), ipe::PdfRef::value(), and ipe::String::z().
- -
-
|
- -noexcept | -
-
|
- -inlinenoexcept | -
-
|
- -inlinenoexcept | -
Referenced by ipe::CairoPainter::executeStream().
- -
-
|
- -noexcept | -
References ipe::size().
- -
-
|
- -noexcept | -
References ipe::PdfObj::array(), ipe::CIDType0, ipe::CIDType2, ipe::PdfArray::count(), ipe::Buffer::data(), ipe::PdfObj::dict(), ipe::PdfDict::inflate(), ipe::PdfObj::name(), ipe::PdfObj::number(), ipe::PdfArray::obj(), ipe::Buffer::size(), ipe::PdfDict::stream(), ipe::Truetype, ipe::Type1, ipe::PdfNumber::value(), and ipe::PdfName::value().
- -
-
|
- -inlinenoexcept | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Face, including all inherited members.
-cairoFont() noexcept | ipe::Face | inline |
Face(const PdfDict *d, const PdfResourceBase *resources) noexcept | ipe::Face | |
glyphIndex(int ch) noexcept | ipe::Face | |
matches(const PdfDict *d) const noexcept | ipe::Face | inline |
type() const noexcept | ipe::Face | inline |
width(int ch) const noexcept | ipe::Face | |
~Face() noexcept | ipe::Face |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherits ipe::DataSource.
--Public Member Functions | |
FileSource (std::FILE *file) | |
virtual int | getChar () override |
virtual int | length () const override |
virtual void | setPosition (int pos) override |
virtual int | position () const override |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
Data source for parsing from a file.
-FileSource::FileSource | -( | -std::FILE * | -file | ) | -- |
-
|
- -overridevirtual | -
Get one more character, or EOF.
- -Implements ipe::DataSource.
- -
-
|
- -overridevirtual | -
Return length of input stream in characters.
-Returns -1 if the stream is not seekable. Calling this function will invalidate the current position.
- -Reimplemented from ipe::DataSource.
- -
-
|
- -overridevirtual | -
Set position in stream.
-Does nothing if the stream is not seekable.
- -Reimplemented from ipe::DataSource.
- -
-
|
- -overridevirtual | -
Return position in stream.
-Returns -1 if the stream is not seekable.
- -Reimplemented from ipe::DataSource.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::FileSource, including all inherited members.
-FileSource(std::FILE *file) | ipe::FileSource | |
getChar() override | ipe::FileSource | virtual |
length() const override | ipe::FileSource | virtual |
position() const override | ipe::FileSource | virtual |
setPosition(int pos) override | ipe::FileSource | virtual |
~DataSource()=0 | ipe::DataSource | pure virtual |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherits ipe::TellStream.
--Public Member Functions | |
FileStream (std::FILE *file) | |
virtual void | putChar (char ch) |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
virtual long | tell () const |
Public Member Functions inherited from ipe::Stream | |
virtual | ~Stream () |
virtual void | close () |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
Stream writing into an open file.
-FileStream::FileStream | -( | -std::FILE * | -file | ) | -- |
Constructor.
- -Referenced by ipe::StringStream::tell().
- -
-
|
- -virtual | -
Output character.
- -Implements ipe::Stream.
- -
-
|
- -virtual | -
Output string.
-Default implementation uses PutChar.
- -Reimplemented from ipe::Stream.
- -References ipe::String::size().
- -
-
|
- -virtual | -
-
|
- -virtual | -
Output raw character data.
-Default implementation uses PutChar.
- -Reimplemented from ipe::Stream.
- -References ipe::String::size().
- -
-
|
- -virtual | -
Implements ipe::TellStream.
- -References ipe::DataSource::~DataSource().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::FileStream, including all inherited members.
-close() | ipe::Stream | virtual |
FileStream(std::FILE *file) | ipe::FileStream | |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch) | ipe::FileStream | virtual |
putCString(const char *s) | ipe::FileStream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::FileStream | virtual |
putString(String s) | ipe::FileStream | virtual |
putXmlString(String s) | ipe::Stream | |
tell() const | ipe::FileStream | virtual |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipebase.h>
-Public Member Functions | |
Fixed (int val) | |
Fixed () | |
int | toInt () const |
double | toDouble () const |
int | internal () const |
Fixed | mult (int a, int b) const |
bool | operator== (const Fixed &rhs) const |
bool | operator!= (const Fixed &rhs) const |
bool | operator< (const Fixed &rhs) const |
bool | isInteger () const |
-Static Public Member Functions | |
static Fixed | fromInternal (int32_t val) |
static Fixed | fromDouble (double val) |
-Friends | |
Stream & | operator<< (Stream &stream, const Fixed &f) |
-Related Functions | |
(Note that these are not member functions.) - | |
Stream & | operator<< (Stream &stream, const Fixed &f) |
Fixed point number with three (decimal) fractional digits.
-
-
|
- -inlineexplicit | -
-
|
- -inlineexplicit | -
-
|
- -inlinestatic | -
Referenced by ipe::Color::Color(), ipe::Attribute::color(), fromDouble(), ipe::Lex::getFixed(), ipe::Attribute::number(), and ipe::String::unicode().
- -
-
|
- -static | -
References fromInternal().
- -Referenced by ipe::Text::getAttribute().
- -
-
|
- -inline | -
-
|
- -inline | -
Referenced by ipe::Latex::createLatexSource(), ipe::BBoxPainter::doDrawPath(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), ipe::Reference::draw(), ipe::Path::drawArrow(), ipe::Reference::drawSimple(), ipe::CairoPainter::executeStream(), ipe::QIpe(), ipe::PdfViewBase::refreshSurface(), and ipe::Text::setAttribute().
- -
-
|
- -inline | -
Referenced by ipe::Attribute::Attribute(), ipe::PdfPainter::drawAttributes(), and ipe::Canvas::sizeHint().
- -Fixed Fixed::mult | -( | -int | -a, | -
- | - | int | -b | -
- | ) | -const | -
Return value times (a/b)
- -Referenced by ipe::Latex::createLatexSource(), and ipe::String::unicode().
- -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
Referenced by ipe::ImlParser::parseStyle().
- -
-
|
- -friend | -
-
|
- -related | -
References ipe::Lex::Lex().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Fixed, including all inherited members.
-Fixed(int val) | ipe::Fixed | inlineexplicit |
Fixed() | ipe::Fixed | inlineexplicit |
fromDouble(double val) | ipe::Fixed | static |
fromInternal(int32_t val) | ipe::Fixed | inlinestatic |
internal() const | ipe::Fixed | inline |
isInteger() const | ipe::Fixed | inline |
mult(int a, int b) const | ipe::Fixed | |
operator!=(const Fixed &rhs) const | ipe::Fixed | inline |
operator<(const Fixed &rhs) const | ipe::Fixed | inline |
operator<<(Stream &stream, const Fixed &f) | ipe::Fixed | friend |
operator<<(Stream &stream, const Fixed &f) | ipe::Fixed | related |
operator==(const Fixed &rhs) const | ipe::Fixed | inline |
toDouble() const | ipe::Fixed | inline |
toInt() const | ipe::Fixed | inline |
- Ipelib
-
- |
-
#include <ipefonts.h>
-Public Member Functions | |
Fonts (const PdfResourceBase *resources) | |
Face * | getFace (const PdfDict *d) |
const PdfResourceBase * | resources () const noexcept |
bool | hasType3Font () const noexcept |
-Static Public Member Functions | |
static cairo_font_face_t * | screenFont () |
static String | freetypeVersion () |
Provides the fonts used to render text.
-Fonts::Fonts | -( | -const PdfResourceBase * | -resources | ) | -- |
Get a typeface.
-Corresponds to a Freetype "face", or a PDF font resource. A Face can be loaded at various sizes (transformations), resulting in individual FaceSize's.
- -Referenced by ipe::CairoPainter::executeStream().
- -
-
|
- -static | -
Return a Cairo font to render to the screen w/o Latex font.
- -Referenced by ipe::CairoPainter::doDrawText().
- -
-
|
- -static | -
-
|
- -inlinenoexcept | -
Referenced by ipe::CairoPainter::executeStream().
- -
-
|
- -noexcept | -
References ipe::Type3.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Fonts, including all inherited members.
-Fonts(const PdfResourceBase *resources) | ipe::Fonts | |
freetypeVersion() | ipe::Fonts | static |
getFace(const PdfDict *d) | ipe::Fonts | |
hasType3Font() const noexcept | ipe::Fonts | |
resources() const noexcept | ipe::Fonts | inline |
screenFont() | ipe::Fonts | static |
- Ipelib
-
- |
-
#include <ipegroup.h>
Inherits ipe::Object.
--Public Types | |
typedef List::const_iterator | const_iterator |
Public Types inherited from ipe::Object | |
enum | Type { - EGroup, -EPath, -EText, -EImage, - - EReference - - } |
-Public Member Functions | |
Group () | |
Group (const Group &rhs) | |
virtual | ~Group () |
Group (const XmlAttributes &attr) | |
Group & | operator= (const Group &rhs) |
virtual Object * | clone () const |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Type | type () const |
virtual TPinned | pinned () const |
virtual void | accept (Visitor &visitor) const |
virtual void | saveAsXml (Stream &stream, String layer) const |
virtual void | draw (Painter &painter) const |
virtual void | drawSimple (Painter &painter) const |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapCtl (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
const Shape & | clip () const |
void | setClip (const Shape &clip) |
String | url () const |
void | setUrl (String url) |
int | count () const |
const Object * | object (int i) const |
const_iterator | begin () const |
const_iterator | end () const |
void | push_back (Object *) |
void | saveComponentsAsXml (Stream &stream) const |
virtual void | checkStyle (const Cascade *sheet, AttributeSeq &seq) const |
virtual Attribute | getAttribute (Property prop) const noexcept |
virtual bool | setAttribute (Property prop, Attribute value) |
Public Member Functions inherited from ipe::Object | |
virtual | ~Object ()=0 |
virtual Text * | asText () |
virtual Path * | asPath () |
virtual Image * | asImage () |
virtual Reference * | asReference () |
void | setPinned (TPinned pin) |
TTransformations | transformations () const |
void | setTransformations (TTransformations trans) |
virtual void | setMatrix (const Matrix &matrix) |
const Matrix & | matrix () const |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::Object | |
Object () | |
Object (const AllAttributes &attr) | |
Object (const Object &rhs) | |
Object (const XmlAttributes &attr) | |
void | saveAttributesAsXml (Stream &stream, String layer) const |
Static Protected Member Functions inherited from ipe::Object | |
static void | checkSymbol (Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) |
Protected Attributes inherited from ipe::Object | |
Matrix | iMatrix |
TPinned | iPinned: 8 |
TTransformations | iTransformations: 8 |
The group object.
-Ipe objects can be grouped together, and the resulting composite can be used like any Ipe object.
-This is an application of the "Composite" pattern.
-typedef List::const_iterator ipe::Group::const_iterator | -
-
|
- -explicit | -
Create empty group (objects can be added later).
- -Referenced by clone().
- -Group::Group | -( | -const Group & | -rhs | ) | -- |
Copy constructor. Constant time — components are not copied!
- -
-
|
- -virtual | -
Destructor.
- -
-
|
- -explicit | -
Create empty group with these attributes (objects can be added later).
- -References clip(), ipe::Shape::countSubPaths(), ipe::ENoPin, ipe::XmlAttributes::has(), ipe::Shape::load(), and ipe::Attribute::NORMAL().
- -Assignment operator (constant-time).
- -
-
|
- -virtual | -
-
|
- -virtual | -
Return pointer to this object.
- -Reimplemented from ipe::Object.
- -
-
|
- -virtual | -
Return pointer to this object.
- -Reimplemented from ipe::Object.
- -
-
|
- -virtual | -
Implements ipe::Object.
- -References ipe::Object::EGroup.
- -
-
|
- -virtual | -
Return total pinning status of group and its elements.
- -Reimplemented from ipe::Object.
- -References ipe::Object::pinned().
- -
-
|
- -virtual | -
Call visitGroup of visitor.
- -Implements ipe::Object.
- -References ipe::Visitor::visitGroup().
- -
-
|
- -virtual | -
Save the object in XML format.
- -Implements ipe::Object.
- -References ipe::Painter::cascade(), ipe::Shape::countSubPaths(), ipe::String::empty(), ipe::Attribute::isNormal(), ipe::Stream::putXmlString(), ipe::Shape::save(), ipe::Object::saveAttributesAsXml(), saveComponentsAsXml(), ipe::Attribute::string(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -virtual | -
Draw the object.
- -Implements ipe::Object.
- -References ipe::Painter::addClipPath(), addToBBox(), begin(), ipe::Rect::center(), end(), ipe::ETransformationsTranslations, ipe::Rect::height(), ipe::Object::matrix(), ipe::Painter::matrix(), ipe::Painter::newPath(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Painter::transform(), ipe::Object::transformations(), ipe::Painter::untransform(), and ipe::Rect::width().
- -
-
|
- -virtual | -
Draw simple version for selecting and transforming.
- -Implements ipe::Object.
- -References ipe::Painter::addClipPath(), begin(), end(), ipe::Object::matrix(), ipe::Painter::newPath(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Painter::transform(), ipe::Object::transformations(), and ipe::Painter::untransform().
- -
-
|
- -virtual | -
Extend box to include the object transformed by m.
-For objects in a page, don't call this directly. The Page caches the bounding box of each object, so it is far more efficient to call Page::bbox.
-Control points that lie outside the visual object are included if cp is true.
-If called with an empty box and cp == false
, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
Implements ipe::Object.
- -References ipe::Rect::addRect(), begin(), ipe::Rect::clipTo(), end(), and ipe::Object::matrix().
- -Referenced by draw().
- -
-
|
- -virtual | -
Return distance of transformed object to point v. If larger than bound, can just return bound.
- -Implements ipe::Object.
- -References begin(), end(), and ipe::Object::matrix().
- -
-
|
- -virtual | -
Compute vertex snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References begin(), end(), and ipe::Object::matrix().
- -
-
|
- -virtual | -
Compute control point snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References begin(), end(), and ipe::Object::matrix().
- -
-
|
- -virtual | -
Compute boundary snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References begin(), end(), and ipe::Object::matrix().
- -
-
|
- -inline | -
void Group::setClip | -( | -const Shape & | -clip | ) | -- |
-
|
- -inline | -
References setUrl().
- -Referenced by ipe::PdfWriter::createPageView(), and setUrl().
- -void Group::setUrl | -( | -String | -url | ) | -- |
-
|
- -inline | -
Return number of component objects.
- -
-
|
- -inline | -
Return object at index i.
- -
-
|
- -inline | -
Return iterator for first object.
- -Referenced by addToBBox(), checkStyle(), distance(), draw(), drawSimple(), saveComponentsAsXml(), snapBnd(), snapCtl(), snapVtx(), ipe::Latex::takeResources(), and ipe::BitmapFinder::visitGroup().
- -
-
|
- -inline | -
Return iterator for end of sequence.
- -References checkStyle(), getAttribute(), ipe::Object::iPinned, push_back(), saveComponentsAsXml(), and setAttribute().
- -Referenced by addToBBox(), checkStyle(), distance(), draw(), drawSimple(), saveComponentsAsXml(), snapBnd(), snapCtl(), snapVtx(), ipe::Latex::takeResources(), and ipe::BitmapFinder::visitGroup().
- -void Group::push_back | -( | -Object * | -obj | ) | -- |
Add an object.
-Takes ownership of the object. This will panic if the object shares its implementation! The method is only useful right after construction of the group.
- -References ipe::Object::pinned().
- -Referenced by end(), and ipe::ImlParser::parseObject().
- -void Group::saveComponentsAsXml | -( | -Stream & | -stream | ) | -const | -
Save all the components, one by one, in XML format.
- -References begin(), and end().
- -Referenced by end(), and saveAsXml().
- -
-
|
- -virtual | -
Check all symbolic attributes.
- -Reimplemented from ipe::Object.
- -References begin(), and end().
- -Referenced by end().
- -
-
|
- -virtualnoexcept | -
Get setting of an attribute of this object.
-If object does not have this attribute, returnes "undefined" attribute.
- -Reimplemented from ipe::Object.
- -References ipe::EPropDecoration, and ipe::Object::getAttribute().
- -Referenced by end().
- -
-
|
- -virtual | -
Set attribute on all children.
- -Reimplemented from ipe::Object.
- -References ipe::EPropDecoration, ipe::EPropPinned, ipe::EPropTransformations, and ipe::Object::setAttribute().
- -Referenced by end().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Group, including all inherited members.
-accept(Visitor &visitor) const | ipe::Group | virtual |
addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::Group | virtual |
asGroup() | ipe::Group | virtual |
asGroup() const | ipe::Group | virtual |
asImage() | ipe::Object | virtual |
asPath() | ipe::Object | virtual |
asReference() | ipe::Object | virtual |
asText() | ipe::Object | virtual |
begin() const | ipe::Group | inline |
checkStyle(const Cascade *sheet, AttributeSeq &seq) const | ipe::Group | virtual |
checkSymbol(Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) | ipe::Object | protectedstatic |
clip() const | ipe::Group | inline |
clone() const | ipe::Group | virtual |
const_iterator typedef | ipe::Group | |
count() const | ipe::Group | inline |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::Group | virtual |
draw(Painter &painter) const | ipe::Group | virtual |
drawSimple(Painter &painter) const | ipe::Group | virtual |
EGroup enum value | ipe::Object | |
EImage enum value | ipe::Object | |
end() const | ipe::Group | inline |
EPath enum value | ipe::Object | |
EReference enum value | ipe::Object | |
EText enum value | ipe::Object | |
getAttribute(Property prop) const noexcept | ipe::Group | virtual |
Group() | ipe::Group | explicit |
Group(const Group &rhs) | ipe::Group | |
Group(const XmlAttributes &attr) | ipe::Group | explicit |
iMatrix | ipe::Object | protected |
iPinned | ipe::Object | protected |
iTransformations | ipe::Object | protected |
matrix() const | ipe::Object | inline |
Object() | ipe::Object | explicitprotected |
Object(const AllAttributes &attr) | ipe::Object | explicitprotected |
Object(const Object &rhs) | ipe::Object | protected |
Object(const XmlAttributes &attr) | ipe::Object | explicitprotected |
object(int i) const | ipe::Group | inline |
operator=(const Group &rhs) | ipe::Group | |
pinned() const | ipe::Group | virtual |
push_back(Object *) | ipe::Group | |
saveAsXml(Stream &stream, String layer) const | ipe::Group | virtual |
saveAttributesAsXml(Stream &stream, String layer) const | ipe::Object | protected |
saveComponentsAsXml(Stream &stream) const | ipe::Group | |
setAttribute(Property prop, Attribute value) | ipe::Group | virtual |
setClip(const Shape &clip) | ipe::Group | |
setMatrix(const Matrix &matrix) | ipe::Object | virtual |
setPinned(TPinned pin) | ipe::Object | |
setTransformations(TTransformations trans) | ipe::Object | |
setUrl(String url) | ipe::Group | |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Group | virtual |
snapCtl(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Group | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Group | virtual |
transformations() const | ipe::Object | inline |
Type enum name | ipe::Object | |
type() const | ipe::Group | virtual |
url() const | ipe::Group | inline |
~Group() | ipe::Group | virtual |
~Object()=0 | ipe::Object | pure virtual |
- Ipelib
-
- |
-
#include <ipeimage.h>
Inherits ipe::Object.
--Public Member Functions | |
Image (const Rect &rect, Bitmap bitmap) | |
Image (const XmlAttributes &attr, String data) | |
Image (const XmlAttributes &attr, Bitmap bitmap) | |
virtual Object * | clone () const override |
virtual Image * | asImage () override |
virtual Type | type () const override |
virtual void | saveAsXml (Stream &stream, String layer) const override |
virtual void | draw (Painter &painter) const override |
virtual void | drawSimple (Painter &painter) const override |
virtual void | accept (Visitor &visitor) const override |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const override |
virtual void | addToBBox (Rect &box, const Matrix &m, bool) const override |
virtual void | snapCtl (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override |
Rect | rect () const |
Bitmap | bitmap () const |
virtual bool | setAttribute (Property prop, Attribute value) override |
virtual Attribute | getAttribute (Property prop) const noexcept override |
void | setOpacity (Attribute opaq) |
Attribute | opacity () const |
Public Member Functions inherited from ipe::Object | |
virtual | ~Object ()=0 |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Text * | asText () |
virtual Path * | asPath () |
virtual Reference * | asReference () |
virtual TPinned | pinned () const |
void | setPinned (TPinned pin) |
TTransformations | transformations () const |
void | setTransformations (TTransformations trans) |
virtual void | setMatrix (const Matrix &matrix) |
const Matrix & | matrix () const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | checkStyle (const Cascade *sheet, AttributeSeq &seq) const |
-Additional Inherited Members | |
Public Types inherited from ipe::Object | |
enum | Type { - EGroup, -EPath, -EText, -EImage, - - EReference - - } |
Protected Member Functions inherited from ipe::Object | |
Object () | |
Object (const AllAttributes &attr) | |
Object (const Object &rhs) | |
Object (const XmlAttributes &attr) | |
void | saveAttributesAsXml (Stream &stream, String layer) const |
Static Protected Member Functions inherited from ipe::Object | |
static void | checkSymbol (Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) |
Protected Attributes inherited from ipe::Object | |
Matrix | iMatrix |
TPinned | iPinned: 8 |
TTransformations | iTransformations: 8 |
The image object.
-
-
|
- -explicit | -
Create a new image.
- -Referenced by clone().
- -
-
|
- -explicit | -
Create from XML stream.
- -
-
|
- -explicit | -
Create from XML stream with given bitmap.
- -References ipe::Rect::addPoint(), ipe::XmlAttributes::has(), ipe::Attribute::OPAQUE(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -overridevirtual | -
-
|
- -overridevirtual | -
Return pointer to this object.
- -Reimplemented from ipe::Object.
- -
-
|
- -overridevirtual | -
Implements ipe::Object.
- -References ipe::Object::EImage.
- -
-
|
- -overridevirtual | -
Save image in XML stream.
- -Implements ipe::Object.
- -References ipe::Bitmap::objNum(), ipe::Attribute::OPAQUE(), rect(), ipe::Object::saveAttributesAsXml(), and ipe::Attribute::string().
- -
-
|
- -overridevirtual | -
Draw image.
- -Implements ipe::Object.
- -References ipe::Rect::bottomLeft(), ipe::Painter::drawBitmap(), ipe::Rect::height(), ipe::Object::matrix(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Painter::setOpacity(), ipe::Painter::transform(), ipe::Object::transformations(), ipe::Painter::untransform(), ipe::Rect::width(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -overridevirtual | -
Draw simple version for selecting and transforming.
- -Implements ipe::Object.
- -References ipe::Painter::drawPath(), ipe::EStrokedOnly, ipe::Object::matrix(), ipe::Painter::newPath(), ipe::Painter::popMatrix(), ipe::Painter::pushMatrix(), ipe::Painter::rect(), ipe::Painter::transform(), ipe::Object::transformations(), and ipe::Painter::untransform().
- -
-
|
- -overridevirtual | -
Call VisitImage of visitor.
- -Implements ipe::Object.
- -References ipe::Visitor::visitImage().
- -
-
|
- -overridevirtual | -
Return distance of transformed object to point v. If larger than bound, can just return bound.
- -Implements ipe::Object.
- -References ipe::Rect::addPoint(), ipe::Rect::bottomLeft(), ipe::Rect::bottomRight(), ipe::Rect::certainClearance(), ipe::Object::matrix(), ipe::Rect::topLeft(), and ipe::Rect::topRight().
- -
-
|
- -overridevirtual | -
Extend box to include the object transformed by m.
-For objects in a page, don't call this directly. The Page caches the bounding box of each object, so it is far more efficient to call Page::bbox.
-Control points that lie outside the visual object are included if cp is true.
-If called with an empty box and cp == false
, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
Implements ipe::Object.
- -References ipe::Rect::addPoint(), ipe::Rect::bottomLeft(), ipe::Rect::bottomRight(), ipe::Object::matrix(), ipe::Rect::topLeft(), and ipe::Rect::topRight().
- -
-
|
- -overridevirtual | -
Compute control point snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References ipe::Rect::bottomLeft(), ipe::Rect::bottomRight(), ipe::Object::matrix(), ipe::Rect::topLeft(), and ipe::Rect::topRight().
- -
-
|
- -inline | -
Return the rectangle occupied by the image on the paper.
-The transformation matrix is applied to this, of course.
- -Referenced by saveAsXml().
- -
-
|
- -inline | -
Return Bitmap of the image.
- -Referenced by ipe::BitmapFinder::visitImage().
- -
-
|
- -overridevirtual | -
Set an attribute on this object.
-Returns true if an attribute was actually changed.
- -Reimplemented from ipe::Object.
- -References ipe::EPropOpacity, opacity(), ipe::Object::setAttribute(), and setOpacity().
- -
-
|
- -overridevirtualnoexcept | -
Get setting of an attribute of this object.
-If object does not have this attribute, returnes "undefined" attribute.
- -Reimplemented from ipe::Object.
- -References ipe::EPropOpacity, ipe::Object::getAttribute(), and opacity().
- -void Image::setOpacity | -( | -Attribute | -opaq | ) | -- |
Set opacity of the object.
- -Referenced by setAttribute().
- -
-
|
- -inline | -
Return opacity of the opject.
- -Referenced by getAttribute(), and setAttribute().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Image, including all inherited members.
-accept(Visitor &visitor) const override | ipe::Image | virtual |
addToBBox(Rect &box, const Matrix &m, bool) const override | ipe::Image | virtual |
asGroup() | ipe::Object | virtual |
asGroup() const | ipe::Object | virtual |
asImage() override | ipe::Image | virtual |
asPath() | ipe::Object | virtual |
asReference() | ipe::Object | virtual |
asText() | ipe::Object | virtual |
bitmap() const | ipe::Image | inline |
checkStyle(const Cascade *sheet, AttributeSeq &seq) const | ipe::Object | virtual |
checkSymbol(Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) | ipe::Object | protectedstatic |
clone() const override | ipe::Image | virtual |
distance(const Vector &v, const Matrix &m, double bound) const override | ipe::Image | virtual |
draw(Painter &painter) const override | ipe::Image | virtual |
drawSimple(Painter &painter) const override | ipe::Image | virtual |
EGroup enum value | ipe::Object | |
EImage enum value | ipe::Object | |
EPath enum value | ipe::Object | |
EReference enum value | ipe::Object | |
EText enum value | ipe::Object | |
getAttribute(Property prop) const noexcept override | ipe::Image | virtual |
Image(const Rect &rect, Bitmap bitmap) | ipe::Image | explicit |
Image(const XmlAttributes &attr, String data) | ipe::Image | explicit |
Image(const XmlAttributes &attr, Bitmap bitmap) | ipe::Image | explicit |
iMatrix | ipe::Object | protected |
iPinned | ipe::Object | protected |
iTransformations | ipe::Object | protected |
matrix() const | ipe::Object | inline |
Object() | ipe::Object | explicitprotected |
Object(const AllAttributes &attr) | ipe::Object | explicitprotected |
Object(const Object &rhs) | ipe::Object | protected |
Object(const XmlAttributes &attr) | ipe::Object | explicitprotected |
opacity() const | ipe::Image | inline |
pinned() const | ipe::Object | virtual |
rect() const | ipe::Image | inline |
saveAsXml(Stream &stream, String layer) const override | ipe::Image | virtual |
saveAttributesAsXml(Stream &stream, String layer) const | ipe::Object | protected |
setAttribute(Property prop, Attribute value) override | ipe::Image | virtual |
setMatrix(const Matrix &matrix) | ipe::Object | virtual |
setOpacity(Attribute opaq) | ipe::Image | |
setPinned(TPinned pin) | ipe::Object | |
setTransformations(TTransformations trans) | ipe::Object | |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
snapCtl(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override | ipe::Image | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
transformations() const | ipe::Object | inline |
type() const override | ipe::Image | virtual |
Type enum name | ipe::Object | |
~Object()=0 | ipe::Object | pure virtual |
- Ipelib
-
- |
-
#include <ipeiml.h>
Inherits ipe::XmlParser.
- -Inherited by PdfStreamParser.
--Public Types | |
enum | Errors { ESuccess = 0, -EVersionTooOld, -EVersionTooRecent, -ESyntaxError - } |
-Public Member Functions | |
ImlParser (DataSource &source) | |
int | parseDocument (Document &doc) |
bool | parsePage (Page &page) |
bool | parseView (Page &page, AttributeMap &map) |
Object * | parseObject (String tag, Page *page=nullptr, int *currentLayer=nullptr) |
Object * | parseObject (String tag, String &layer) |
StyleSheet * | parseStyleSheet () |
bool | parseStyle (StyleSheet &sheet) |
Page * | parsePageSelection () |
virtual Buffer | pdfStream (int objNum) |
bool | parseBitmap () |
Public Member Functions inherited from ipe::XmlParser | |
XmlParser (DataSource &source) | |
virtual | ~XmlParser () |
int | parsePosition () const |
String | parseToTag () |
bool | parseAttributes (XmlAttributes &attr, bool qm=false) |
bool | parsePCDATA (String tag, String &pcdata) |
bool | isTagChar (int ch) |
void | getChar () |
bool | eos () |
void | skipWhitespace () |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::XmlParser | |
String | parseToTagX () |
Protected Attributes inherited from ipe::XmlParser | |
DataSource & | iSource |
String | iTopElement |
int | iCh |
int | iPos |
XML Parser for Ipe documents and style sheets.
-A recursive descent parser for the XML streams.
-After experimenting with various XML parsing frameworks, this turned out to work best for Ipe.
-enum ipe::ImlParser::Errors | -
-
|
- -explicit | -
int ImlParser::parseDocument | -( | -Document & | -doc | ) | -- |
Read a complete document from IML stream.
-Returns an error code.
- -References ipe::Document::cascade(), ESuccess, ESyntaxError, EVersionTooOld, EVersionTooRecent, ipe::XmlAttributes::has(), ipe::Document::SProperties::iAuthor, ipe::Document::SProperties::iCreated, ipe::Document::SProperties::iCreator, ipe::Document::SProperties::iFullScreen, ipe::Document::SProperties::iKeywords, ipe::Document::SProperties::iModified, ipe::Cascade::insert(), ipe::Document::SProperties::iNumberPages, ipe::IPELIB_VERSION, ipe::Document::SProperties::iPreamble, ipe::Document::SProperties::iSubject, ipe::Document::SProperties::iTexEngine, ipe::Document::SProperties::iTitle, ipe::Luatex, ipe::OLDEST_FILE_FORMAT, ipe::XmlParser::parseAttributes(), parseBitmap(), parsePage(), ipe::XmlParser::parsePCDATA(), parseStyle(), ipe::XmlParser::parseToTag(), ipe::Pdftex, ipe::Document::properties(), ipe::Document::push_back(), ipe::Document::setProperties(), and ipe::Xetex.
- -Referenced by ipe::Document::formatFromFilename().
- -bool ImlParser::parsePage | -( | -Page & | -page | ) | -- |
Parse an Page.
-On calling, stream must be just past page
.
References ipe::Page::addLayer(), ipe::Page::Always, ipe::Page::count(), ipe::Page::countLayers(), ipe::Page::countViews(), ipe::String::empty(), ipe::ENotSelected, ipe::Lex::eos(), ipe::XmlAttributes::has(), ipe::Page::insert(), ipe::Page::insertView(), ipe::Page::isLocked(), ipe::Page::layer(), ipe::Page::Never, ipe::Lex::nextToken(), ipe::XmlParser::parseAttributes(), parseObject(), ipe::XmlParser::parsePCDATA(), ipe::XmlParser::parseToTag(), parseView(), ipe::Page::setActive(), ipe::Page::setEffect(), ipe::Page::setLayerData(), ipe::Page::setLocked(), ipe::Page::setMarked(), ipe::Page::setMarkedView(), ipe::Page::setNotes(), ipe::Page::setSection(), ipe::Page::setSnapping(), ipe::Page::setTitle(), ipe::Page::setViewMap(), ipe::Page::setViewName(), ipe::Page::setVisible(), ipe::Lex::skipWhitespace(), and ipe::XmlAttributes::slash().
- -Referenced by parseDocument(), and parsePageSelection().
- -bool ImlParser::parseView | -( | -Page & | -page, | -
- | - | AttributeMap & | -map | -
- | ) | -- |
Parse an attribute map.
-On calling, stream must be before the first mapping element.
- -References ipe::AttributeMap::add(), ipe::Page::countViews(), ipe::EArrowSize, ipe::EColor, ipe::EDashStyle, ipe::String::empty(), ipe::EOpacity, ipe::EPen, ipe::ESymbol, ipe::ESymbolSize, ipe::Page::findLayer(), ipe::XmlAttributes::has(), ipe::XmlParser::parseAttributes(), ipe::XmlParser::parseToTag(), ipe::Page::setLayerMatrix(), and ipe::XmlAttributes::slash().
- -Referenced by parsePage().
- -Object * ImlParser::parseObject | -( | -String | -tag, | -
- | - | Page * | -page = nullptr , |
-
- | - | int * | -currentLayer = nullptr |
-
- | ) | -- |
parse an Object.
-On calling, stream must be just past the tag.
- -References ipe::Page::countLayers(), ipe::String::empty(), and ipe::Page::layer().
- -Referenced by parseObject(), parsePage(), and parseStyle().
- -Object * ImlParser::parseObject | -( | -String | -tag, | -
- | - | String & | -layer | -
- | ) | -- |
parse an Object.
-On calling, stream must be just past the tag.
- -References ipe::ObjectFactory::createImage(), ipe::ObjectFactory::createObject(), ipe::String::empty(), ipe::Lex::getInt(), ipe::XmlAttributes::has(), ipe::Bitmap::isNull(), ipe::XmlParser::parseAttributes(), parseObject(), ipe::XmlParser::parsePCDATA(), ipe::XmlParser::parseToTag(), ipe::Group::push_back(), and ipe::XmlAttributes::slash().
- -StyleSheet * ImlParser::parseStyleSheet | -( | -) | -- |
parse a complete style sheet.
-On calling, stream must be before the 'ipestyle' tag. A <?xml> tag is allowed.
- -References ipe::XmlParser::parseAttributes(), parseStyle(), and ipe::XmlParser::parseToTag().
- -Referenced by ipe::StyleSheet::standard().
- -bool ImlParser::parseStyle | -( | -StyleSheet & | -sheet | ) | -- |
Parse a style sheet.
-On calling, stream must be just past the style tag.
- -References ipe::StyleSheet::add(), ipe::StyleSheet::addEffect(), ipe::StyleSheet::addGradient(), ipe::StyleSheet::addSymbol(), ipe::StyleSheet::addTiling(), ipe::Attribute::BLACK(), ipe::Gradient::Stop::color, ipe::Angle::Degrees(), ipe::EAlignBaseline, ipe::EAlignLeft, ipe::EAngleSize, ipe::EArrowSize, ipe::Gradient::EAxial, ipe::EColor, ipe::EDashStyle, ipe::EEvenOddRule, ipe::EGridSize, ipe::Reference::EHasFill, ipe::Reference::EHasPen, ipe::Reference::EHasSize, ipe::Reference::EHasStroke, ipe::ELabelStyle, ipe::String::empty(), ipe::EOpacity, ipe::Lex::eos(), ipe::EPen, ipe::Gradient::ERadial, ipe::ESymbolSize, ipe::ETextSize, ipe::ETextStretch, ipe::ETextStyle, ipe::ETransformationsRigidMotions, ipe::ETransformationsTranslations, ipe::EWindRule, ipe::Reference::flagsFromName(), ipe::Lex::getDouble(), ipe::Lex::getInt(), ipe::XmlAttributes::has(), ipe::Tiling::iAngle, ipe::TextPadding::iBottom, ipe::StyleSheet::TitleStyle::iColor, ipe::StyleSheet::PageNumberStyle::iColor, ipe::Layout::iCrop, ipe::StyleSheet::TitleStyle::iDefined, ipe::StyleSheet::PageNumberStyle::iDefined, ipe::Effect::iDuration, ipe::Effect::iEffect, ipe::Gradient::iExtend, ipe::Layout::iFrameSize, ipe::StyleSheet::TitleStyle::iHorizontalAlignment, ipe::StyleSheet::PageNumberStyle::iHorizontalAlignment, ipe::TextPadding::iLeft, ipe::Gradient::iMatrix, ipe::Layout::iOrigin, ipe::Layout::iPaperSize, ipe::Layout::iParagraphSkip, ipe::StyleSheet::TitleStyle::iPos, ipe::StyleSheet::PageNumberStyle::iPos, ipe::Gradient::iRadius, ipe::TextPadding::iRight, ipe::Attribute::isColor(), ipe::Fixed::isInteger(), ipe::StyleSheet::TitleStyle::iSize, ipe::StyleSheet::PageNumberStyle::iSize, ipe::Symbol::iSnap, ipe::Attribute::isNumber(), ipe::Attribute::isSymbolic(), ipe::Tiling::iStep, ipe::Gradient::iStops, ipe::StyleSheet::PageNumberStyle::iText, ipe::TextPadding::iTop, ipe::Symbol::iTransformations, ipe::Effect::iTransitionTime, ipe::Gradient::iType, ipe::Gradient::iV, ipe::StyleSheet::TitleStyle::iVerticalAlignment, ipe::StyleSheet::PageNumberStyle::iVerticalAlignment, ipe::Tiling::iWidth, ipe::Symbol::iXForm, ipe::Attribute::makeColor(), ipe::Attribute::makeDashStyle(), ipe::Text::makeHAlign(), ipe::Attribute::makeScalar(), ipe::Attribute::makeTextSize(), ipe::Text::makeVAlign(), ipe::Attribute::NORMAL(), ipe::Attribute::number(), ipe::Gradient::Stop::offset, ipe::XmlParser::parseAttributes(), parseBitmap(), parseObject(), ipe::XmlParser::parsePCDATA(), ipe::XmlParser::parseToTag(), ipe::StyleSheet::setFillRule(), ipe::StyleSheet::setLayout(), ipe::StyleSheet::setLineCap(), ipe::StyleSheet::setLineJoin(), ipe::StyleSheet::setName(), ipe::StyleSheet::setPageNumberStyle(), ipe::StyleSheet::setPreamble(), ipe::StyleSheet::setTextPadding(), ipe::StyleSheet::setTitleStyle(), ipe::size(), ipe::Lex::skipWhitespace(), ipe::XmlAttributes::slash(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by parseDocument(), and parseStyleSheet().
- -Page * ImlParser::parsePageSelection | -( | -) | -- |
parse an <ipepage> element (used on clipboard).
References ipe::XmlParser::parseAttributes(), parseBitmap(), parsePage(), and ipe::XmlParser::parseToTag().
- -
-
|
- -virtual | -
XML contents can refer to data in PDF.
-If the XML stream is embedded in a PDF file, XML contents can refer to PDF objects. A derived parser must implement this method to access PDF data.
-It is assumed that PDF object objNum is a stream. Its contents (uncompressed!) is returned in a buffer.
- -Referenced by parseBitmap().
- -bool ImlParser::parseBitmap | -( | -) | -- |
Parse an Bitmap.
-On calling, stream must be just past bitmap
.
References ipe::Lex::eos(), ipe::Lex::getInt(), ipe::XmlAttributes::has(), ipe::XmlParser::parseAttributes(), ipe::XmlParser::parsePCDATA(), pdfStream(), ipe::Lex::skipWhitespace(), and ipe::XmlAttributes::slash().
- -Referenced by parseDocument(), parsePageSelection(), and parseStyle().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::ImlParser, including all inherited members.
-eos() | ipe::XmlParser | inline |
Errors enum name | ipe::ImlParser | |
ESuccess enum value | ipe::ImlParser | |
ESyntaxError enum value | ipe::ImlParser | |
EVersionTooOld enum value | ipe::ImlParser | |
EVersionTooRecent enum value | ipe::ImlParser | |
getChar() | ipe::XmlParser | inline |
iCh | ipe::XmlParser | protected |
ImlParser(DataSource &source) | ipe::ImlParser | explicit |
iPos | ipe::XmlParser | protected |
iSource | ipe::XmlParser | protected |
isTagChar(int ch) | ipe::XmlParser | inline |
iTopElement | ipe::XmlParser | protected |
parseAttributes(XmlAttributes &attr, bool qm=false) | ipe::XmlParser | |
parseBitmap() | ipe::ImlParser | |
parseDocument(Document &doc) | ipe::ImlParser | |
parseObject(String tag, Page *page=nullptr, int *currentLayer=nullptr) | ipe::ImlParser | |
parseObject(String tag, String &layer) | ipe::ImlParser | |
parsePage(Page &page) | ipe::ImlParser | |
parsePageSelection() | ipe::ImlParser | |
parsePCDATA(String tag, String &pcdata) | ipe::XmlParser | |
parsePosition() const | ipe::XmlParser | inline |
parseStyle(StyleSheet &sheet) | ipe::ImlParser | |
parseStyleSheet() | ipe::ImlParser | |
parseToTag() | ipe::XmlParser | |
parseToTagX() | ipe::XmlParser | protected |
parseView(Page &page, AttributeMap &map) | ipe::ImlParser | |
pdfStream(int objNum) | ipe::ImlParser | virtual |
skipWhitespace() | ipe::XmlParser | |
XmlParser(DataSource &source) | ipe::XmlParser | |
~XmlParser() | ipe::XmlParser | virtual |
- Ipelib
-
- |
-
#include <ipeutils.h>
Inherits ipe::DataSource.
--Public Member Functions | |
InflateSource (DataSource &source) | |
virtual | ~InflateSource () |
virtual int | getChar () |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
virtual int | length () const |
virtual void | setPosition (int pos) |
virtual int | position () const |
Filter source adding flate decompression.
-InflateSource::InflateSource | -( | -DataSource & | -source | ) | -- |
References ipe::Buffer::data().
- -
-
|
- -virtual | -
References ipe::Buffer::data(), ipe::DataSource::getChar(), and ipe::Buffer::size().
- -
-
|
- -virtual | -
Get one more character, or EOF.
- -Implements ipe::DataSource.
- -References ipe::Buffer::data(), ipe::Buffer::size(), ipe::Ipelet::~Ipelet(), and ipe::IpeletHelper::~IpeletHelper().
- -Referenced by ipe::PdfDict::inflate().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::InflateSource, including all inherited members.
-getChar() | ipe::InflateSource | virtual |
InflateSource(DataSource &source) | ipe::InflateSource | |
length() const | ipe::DataSource | virtual |
position() const | ipe::DataSource | virtual |
setPosition(int pos) | ipe::DataSource | virtual |
~DataSource()=0 | ipe::DataSource | pure virtual |
~InflateSource() | ipe::InflateSource | virtual |
- Ipelib
-
- |
-
#include <ipelet.h>
-Public Types | |
enum | { - EOkButton, -EOkCancelButtons, -EYesNoCancelButtons, -EDiscardCancelButtons, - - ESaveDiscardCancelButtons - - } |
-Public Member Functions | |
virtual | ~IpeletHelper ()=0 |
virtual void | message (const char *msg)=0 |
virtual int | messageBox (const char *text, const char *details, int buttons)=0 |
virtual bool | getString (const char *prompt, String &str)=0 |
virtual String | getParameter (const char *key)=0 |
Service provider for Ipelets.
-C++ Ipelets can ask Ipe to perform various services and request information using this class.
-anonymous enum | -
-
|
- -pure virtual | -
Pure virtual destructor.
- -Referenced by ipe::InflateSource::getChar().
- -
-
|
- -pure virtual | -
Show a message in the status bar.
- -
-
|
- -pure virtual | -
Pop up a modal message box.
-The details can be null.
-Choose one of EOkButton, EOkCancelButtons, EYesNoCancelButtons, EDiscardCancelButtons, ESaveDiscardCancelButtons for buttons.
-Returns 1 for Ok or Yes, 0 for No, -1 for Cancel.
- -
-
|
- -pure virtual | -
Pop up a modal dialog asking the user to enter a string. Returns true if the user didn't cancel the dialog.
- -
-
|
- -pure virtual | -
Retrieve a parameter value from a table in the Lua wrapper code. If no table has been passed, or the key is not in the table, or its value is not a string or a number, then an empty string is returned.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::IpeletHelper, including all inherited members.
-EDiscardCancelButtons enum value | ipe::IpeletHelper | |
EOkButton enum value | ipe::IpeletHelper | |
EOkCancelButtons enum value | ipe::IpeletHelper | |
ESaveDiscardCancelButtons enum value | ipe::IpeletHelper | |
EYesNoCancelButtons enum value | ipe::IpeletHelper | |
getParameter(const char *key)=0 | ipe::IpeletHelper | pure virtual |
getString(const char *prompt, String &str)=0 | ipe::IpeletHelper | pure virtual |
message(const char *msg)=0 | ipe::IpeletHelper | pure virtual |
messageBox(const char *text, const char *details, int buttons)=0 | ipe::IpeletHelper | pure virtual |
~IpeletHelper()=0 | ipe::IpeletHelper | pure virtual |
- Ipelib
-
- |
-
#include <ipelet.h>
-Public Member Functions | |
virtual | ~Ipelet ()=0 |
virtual int | ipelibVersion () const =0 |
virtual bool | run (int function, IpeletData *data, IpeletHelper *helper)=0 |
Abstract base class for Ipelets.
-
-
|
- -pure virtual | -
Pure virtual destructor.
- -Referenced by ipe::InflateSource::getChar().
- -
-
|
- -pure virtual | -
Return the version of Ipelib the Ipelet was linked against.
- -
-
|
- -pure virtual | -
Run a function from the Ipelet.
-Return true if page was changed and undo registration is necessary.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Ipelet, including all inherited members.
-ipelibVersion() const =0 | ipe::Ipelet | pure virtual |
run(int function, IpeletData *data, IpeletHelper *helper)=0 | ipe::Ipelet | pure virtual |
~Ipelet()=0 | ipe::Ipelet | pure virtual |
- Ipelib
-
- |
-
#include <ipelatex.h>
-Public Member Functions | |
Latex (const Cascade *sheet, LatexType latexType) | |
~Latex () | |
int | scanObject (const Object *obj) |
int | scanPage (Page *page) |
void | addPageNumber (int pno, int vno, int npages, int nviews) |
int | createLatexSource (Stream &stream, String preamble) |
bool | readPdf (DataSource &source) |
bool | updateTextObjects () |
PdfResources * | takeResources () |
-Friends | |
class | ipe::TextCollectingVisitor |
Object that converts latex source to PDF format.
-This object is responsible for creating the PDF representation of text objects.
-Create a converter object.
- -Latex::~Latex | -( | -) | -- |
Destructor.
- -int Latex::scanObject | -( | -const Object * | -obj | ) | -- |
Scan an object and insert all text objects into Latex's list. Returns total number of text objects found so far.
- -References ipe::Object::accept().
- -Referenced by ipe::Document::runLatex().
- -int Latex::scanPage | -( | -Page * | -page | ) | -- |
Scan a page and insert all text objects into Latex's list. Returns total number of text objects found so far.
- -References ipe::Object::accept(), ipe::Text::accept(), ipe::Page::applyTitleStyle(), ipe::Page::count(), ipe::Page::invalidateBBox(), ipe::Page::object(), and ipe::Page::titleText().
- -Referenced by ipe::Document::runLatex().
- -void Latex::addPageNumber | -( | -int | -pno, | -
- | - | int | -vno, | -
- | - | int | -npages, | -
- | - | int | -nviews | -
- | ) | -- |
Create Text object to represent the page number of this view.
- -References ipe::Text::ELabel, ipe::String::empty(), ipe::StyleSheet::PageNumberStyle::iColor, ipe::StyleSheet::PageNumberStyle::iHorizontalAlignment, ipe::AllAttributes::iHorizontalAlignment, ipe::StyleSheet::PageNumberStyle::iPos, ipe::StyleSheet::PageNumberStyle::iSize, ipe::AllAttributes::iStroke, ipe::StyleSheet::PageNumberStyle::iText, ipe::AllAttributes::iTextSize, ipe::StyleSheet::PageNumberStyle::iVerticalAlignment, ipe::AllAttributes::iVerticalAlignment, ipe::PdfResources::SPageNumber::page, ipe::Text::size(), ipe::PdfResources::SPageNumber::text, and ipe::PdfResources::SPageNumber::view.
- -Referenced by ipe::Document::runLatex().
- -int Latex::createLatexSource | -( | -Stream & | -stream, | -
- | - | String | -preamble | -
- | ) | -- |
Create a Latex source file with all the text objects collected before. The client should have prepared a directory for the Pdflatex run, and pass the name of the Latex source file to be written by Latex.
-Returns the number of text objects that did not yet have an XForm, or a negative error code.
- -References ipe::Rect::addPoint(), ipe::Rect::bottomLeft(), ipe::PdfDict::count(), ipe::PdfObj::dict(), ipe::EColor, ipe::ELabelStyle, ipe::String::empty(), ipe::ETextSize, ipe::ETextStretch, ipe::ETextStyle, ipe::PdfDict::get(), ipe::PdfDict::getInteger(), ipe::PdfDict::getNumber(), ipe::PdfDict::getNumberArray(), ipe::Text::getXForm(), ipe::Text::XForm::iBBox, ipe::Color::iBlue, ipe::Text::XForm::iDepth, ipe::Color::iGreen, ipe::Text::XForm::iName, ipe::Color::iRed, ipe::Text::XForm::iRefCount, ipe::Color::isGray(), ipe::Text::isMinipage(), ipe::Attribute::isNumber(), ipe::Text::XForm::iStretch, ipe::Text::XForm::iTranslation, ipe::PdfDict::key(), ipe::Luatex, ipe::Fixed::mult(), ipe::Attribute::number(), ipe::PdfObj::ref(), ipe::String::size(), ipe::Attribute::string(), ipe::Text::stroke(), ipe::Text::style(), ipe::String::substr(), ipe::Text::text(), ipe::Fixed::toDouble(), ipe::PdfRef::value(), ipe::PdfDict::value(), and ipe::Text::width().
- -Referenced by ipe::Document::runLatex().
- -bool Latex::readPdf | -( | -DataSource & | -source | ) | -- |
Read the PDF file created by Pdflatex.
-Must have performed the call to Pdflatex, and pass the name of the resulting output file.
- -References ipe::PdfObj::array(), ipe::PdfArray::count(), ipe::PdfDict::count(), ipe::PdfObj::dict(), ipe::PdfDict::get(), ipe::PdfDict::key(), ipe::PdfArray::obj(), ipe::PdfObj::ref(), ipe::PdfRef::value(), and ipe::PdfDict::value().
- -Referenced by ipe::Document::runLatex().
- -bool Latex::updateTextObjects | -( | -) | -- |
Notify all text objects about their updated PDF code.
-Returns true if successful.
- -References ipe::String::z().
- -Referenced by ipe::Document::runLatex().
- -PdfResources * Latex::takeResources | -( | -) | -- |
Return the newly created PdfResources and pass ownership to caller.
- -References ipe::Group::begin(), ipe::Group::end(), ipe::TextCollectingVisitor, and ipe::Text::size().
- -Referenced by ipe::Document::runLatex().
- -
-
|
- -friend | -
Referenced by takeResources().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Latex, including all inherited members.
-addPageNumber(int pno, int vno, int npages, int nviews) | ipe::Latex | |
createLatexSource(Stream &stream, String preamble) | ipe::Latex | |
ipe::TextCollectingVisitor class | ipe::Latex | friend |
Latex(const Cascade *sheet, LatexType latexType) | ipe::Latex | |
readPdf(DataSource &source) | ipe::Latex | |
scanObject(const Object *obj) | ipe::Latex | |
scanPage(Page *page) | ipe::Latex | |
takeResources() | ipe::Latex | |
updateTextObjects() | ipe::Latex | |
~Latex() | ipe::Latex |
- Ipelib
-
- |
-
#include <ipebase.h>
-Public Member Functions | |
Lex (String str) | |
String | token () |
String | nextToken () |
int | getInt () |
int | getHexByte () |
Fixed | getFixed () |
unsigned long int | getHexNumber () |
double | getDouble () |
char | getChar () |
void | skipWhitespace () |
Lex & | operator>> (int &i) |
Lex & | operator>> (double &d) |
Lex & | operator>> (Fixed &d) |
void | mark () |
void | fromMark () |
bool | eos () const |
Lexical analyser. Seeded with a string.
-
-
|
- -explicit | -
Construct lexical analyzer from a string.
- -Referenced by ipe::Fixed::operator<<().
- -String Lex::token | -( | -) | -- |
Return NextToken, but without extracting it.
- -Referenced by ipe::Shape::load().
- -String Lex::nextToken | -( | -) | -- |
Extract next token.
-Skips any whitespace before the token. Returns empty string if end of string is reached.
- -Referenced by ipe::Shape::load(), and ipe::ImlParser::parsePage().
- -int Lex::getInt | -( | -) | -- |
Extract integer token (skipping whitespace).
- -References ipe::String::z().
- -Referenced by ipe::Bitmap::Bitmap(), ipe::Document::findPage(), ipe::Page::findView(), ipe::PdfParser::getTrailer(), ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseObject(), and ipe::ImlParser::parseStyle().
- -int Lex::getHexByte | -( | -) | -- |
Extract byte in hex (skipping whitespace).
- -Referenced by ipe::Bitmap::Bitmap(), and ipe::PdfString::decode().
- -Fixed Lex::getFixed | -( | -) | -- |
Extract Fixed token (skipping whitespace).
- -References ipe::Fixed::fromInternal(), ipe::String::size(), ipe::String::substr(), and ipe::String::z().
- -unsigned long int Lex::getHexNumber | -( | -) | -- |
Extract hexadecimal token (skipping whitespace).
- -References ipe::String::z().
- -Referenced by ipe::Bitmap::Bitmap().
- -double Lex::getDouble | -( | -) | -- |
Extract double token (skipping whitespace).
- -References ipe::Platform::toDouble().
- -Referenced by ipe::ImlParser::parseStyle(), and ipe::Text::Text().
- -
-
|
- -inline | -
Extract next character (not skipping anything).
- -void Lex::skipWhitespace | -( | -) | -- |
Skip over whitespace.
- -References ipe::Buffer::Buffer(), and ipe::String::size().
- -Referenced by ipe::Shape::load(), ipe::ImlParser::parseBitmap(), ipe::ImlParser::parsePage(), and ipe::ImlParser::parseStyle().
- -
-
|
- -inline | -
Operator syntax for getInt().
- -
-
|
- -inline | -
Operator syntax for getDouble().
- -Operator syntax for getFixed().
- -
-
|
- -inline | -
Mark the current position.
- -
-
|
- -inline | -
Reset reader to the marked position.
- -
-
|
- -inline | -
Return true if at end of string (not even whitespace left).
- -Referenced by ipe::Color::Color(), ipe::PdfString::decode(), ipe::Shape::load(), ipe::ImlParser::parseBitmap(), ipe::ImlParser::parsePage(), and ipe::ImlParser::parseStyle().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Lex, including all inherited members.
-eos() const | ipe::Lex | inline |
fromMark() | ipe::Lex | inline |
getChar() | ipe::Lex | inline |
getDouble() | ipe::Lex | |
getFixed() | ipe::Lex | |
getHexByte() | ipe::Lex | |
getHexNumber() | ipe::Lex | |
getInt() | ipe::Lex | |
Lex(String str) | ipe::Lex | explicit |
mark() | ipe::Lex | inline |
nextToken() | ipe::Lex | |
operator>>(int &i) | ipe::Lex | inline |
operator>>(double &d) | ipe::Lex | inline |
operator>>(Fixed &d) | ipe::Lex | inline |
skipWhitespace() | ipe::Lex | |
token() | ipe::Lex |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Linear () | |
Linear (Angle angle) | |
Linear (double m11, double m21, double m12, double m22) | |
Linear (String str) | |
Linear | inverse () const |
bool | isIdentity () const |
Vector | operator* (const Vector &rhs) const |
bool | operator== (const Linear &rhs) const |
double | determinant () const |
-Public Attributes | |
double | a [4] |
-Related Functions | |
(Note that these are not member functions.) - | |
Stream & | operator<< (Stream &stream, const Linear &rhs) |
Vector | operator* (const Vector &rhs) const |
Linear | operator* (const Linear &lhs, const Linear &rhs) |
Linear transformation in the plane (2x2 matrix).
-
-
|
- -inline | -
Create identity matrix.
- -Referenced by ipe::Segment::snap().
- -
-
|
- -explicit | -
Create matrix representing a rotation by angle.
- -
-
|
- -inlineexplicit | -
Create linear matrix with given coefficients.
- -
-
|
- -explicit | -
Parse string.
- -Linear Linear::inverse | -( | -) | -const | -
Return inverse.
- -References a, and ipe::Matrix::Matrix().
- -Referenced by ipe::Arc::bbox().
- -
-
|
- -inline | -
Is this the identity matrix?
- -
-
|
- -inline | -
Check for equality of two linear matrices.
- -References a.
- -
-
|
- -inline | -
Return determinant of a linear matrix.
- -
-
|
- -related | -
Linear matrix times vector.
- -References ipe::Vector::x, and ipe::Vector::y.
- -double ipe::Linear::a[4] | -
Referenced by inverse(), ipe::Matrix::Matrix(), operator*(), and operator==().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Linear, including all inherited members.
-a | ipe::Linear | |
determinant() const | ipe::Linear | inline |
inverse() const | ipe::Linear | |
isIdentity() const | ipe::Linear | inline |
Linear() | ipe::Linear | inline |
Linear(Angle angle) | ipe::Linear | explicit |
Linear(double m11, double m21, double m12, double m22) | ipe::Linear | inlineexplicit |
Linear(String str) | ipe::Linear | explicit |
operator*(const Vector &rhs) const | ipe::Linear | inline |
operator*(const Vector &rhs) const | ipe::Linear | related |
operator*(const Linear &lhs, const Linear &rhs) | ipe::Linear | related |
operator<<(Stream &stream, const Linear &rhs) | ipe::Linear | related |
operator==(const Linear &rhs) const | ipe::Linear | inline |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Line () | |
Line (const Vector &p, const Vector &dir) | |
double | side (const Vector &p) const |
Vector | normal () const |
double | distance (const Vector &v) const |
bool | intersects (const Line &line, Vector &pt) |
Vector | project (const Vector &v) const |
Vector | dir () const |
-Static Public Member Functions | |
static Line | through (const Vector &p, const Vector &q) |
-Public Attributes | |
Vector | iP |
A directed line.
-
-
|
- -inlineexplicit | -
Create default line (x-axis).
- -
-
|
- -explicit | -
Construct a line from p with direction dir.
-Asserts unit length of dir.
- -References ipe::Vector::sqLen().
- -
-
|
- -static | -
Construct a line through two points.
- -Referenced by ipe::Bezier::straight().
- -double Line::side | -( | -const Vector & | -p | ) | -const | -
Result is > 0, = 0, < 0 if point lies to the left, on, to the right.
- -Referenced by ipe::Bezier::intersect().
- -
-
|
- -inline | -
Return a normal vector pointing to the left of the directed line.
- -double Line::distance | -( | -const Vector & | -v | ) | -const | -
Returns distance between line and v.
- -References dir(), iP, ipe::Vector::len(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Bezier::straight().
- -Does this line intersect line? If so, computes intersection point.
- -Referenced by ipe::Snap::snap().
- -Orthogonally project point v onto the line.
- -Referenced by ipe::Snap::setEdge(), and ipe::Snap::snap().
- -
-
|
- -inline | -
Return direction of line.
- -Referenced by distance(), ipe::Arc::intersect(), and ipe::Snap::setEdge().
- -Vector ipe::Line::iP | -
Point on the line.
- -Referenced by distance(), and ipe::Arc::intersect().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Line, including all inherited members.
-dir() const | ipe::Line | inline |
distance(const Vector &v) const | ipe::Line | |
intersects(const Line &line, Vector &pt) | ipe::Line | |
iP | ipe::Line | |
Line() | ipe::Line | inlineexplicit |
Line(const Vector &p, const Vector &dir) | ipe::Line | explicit |
normal() const | ipe::Line | inline |
project(const Vector &v) const | ipe::Line | |
side(const Vector &p) const | ipe::Line | |
through(const Vector &p, const Vector &q) | ipe::Line | static |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Matrix () | |
Matrix (const Linear &linear) | |
Matrix (const Linear &linear, const Vector &t) | |
Matrix (double m11, double m21, double m12, double m22, double t1, double t2) | |
Matrix (const Vector &v) | |
Matrix (String str) | |
Matrix | inverse () const |
Vector | operator* (const Vector &rhs) const |
Bezier | operator* (const Bezier &rhs) const |
Vector | translation () const |
Linear | linear () const |
double | determinant () const |
bool | isIdentity () const |
bool | operator== (const Matrix &rhs) const |
-Public Attributes | |
double | a [6] |
-Related Functions | |
(Note that these are not member functions.) - | |
Stream & | operator<< (Stream &stream, const Matrix &rhs) |
Bezier | operator* (const Bezier &rhs) const |
Vector | operator* (const Vector &rhs) const |
Matrix | operator* (const Matrix &lhs, const Matrix &rhs) |
Arc | operator* (const Matrix &lhs, const Arc &rhs) |
Homogeneous transformation in the plane.
-
-
|
- -inline | -
Create identity matrix.
- -Referenced by ipe::Linear::inverse().
- -
-
|
- -inline | -
Create linear matrix.
- -References ipe::Linear::a.
- -
-
|
- -inlineexplicit | -
References ipe::Linear::a, ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -inlineexplicit | -
Create matrix with given coefficients.
- -
-
|
- -inlineexplicit | -
Create translation matrix.
- -References ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -explicit | -
Parse string.
- -Matrix Matrix::inverse | -( | -) | -const | -
Return inverse.
- -References a.
- -Referenced by ipe::Arc::Arc(), ipe::Path::clone(), ipe::Arc::distance(), ipe::CairoPainter::executeStream(), ipe::Arc::intersect(), and ipe::Bezier::snap().
- -
-
|
- -inline | -
Return translation component.
- -Referenced by ipe::Text::checkStyle(), ipe::CairoPainter::doDrawText(), ipe::Path::draw(), and ipe::Painter::untransform().
- -
-
|
- -inline | -
Return linear transformation component of this affine transformation.
- -Referenced by ipe::Path::clone(), ipe::Path::draw(), ipe::CairoPainter::executeStream(), ipe::Arc::intersect(), and ipe::Snap::setEdge().
- -
-
|
- -inline | -
Return determinant of the matrix.
- -Referenced by ipe::Shape::load().
- -
-
|
- -inline | -
Is this the identity matrix?
- -Referenced by ipe::StyleSheet::saveAsXml(), ipe::Object::saveAttributesAsXml(), and ipe::Page::setLayerMatrix().
- -
-
|
- -inline | -
Check for equality of two matrices.
- -References a.
- -
-
|
- -related | -
Transform Bezier spline.
- -References ipe::Bezier::iV.
- -Matrix times vector.
- -References ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -related | -
Transform arc.
- -References ipe::Arc::Arc(), ipe::Arc::iAlpha, ipe::Arc::iBeta, and ipe::Arc::iM.
- -double ipe::Matrix::a[6] | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Matrix, including all inherited members.
-a | ipe::Matrix | |
determinant() const | ipe::Matrix | inline |
inverse() const | ipe::Matrix | |
isIdentity() const | ipe::Matrix | inline |
linear() const | ipe::Matrix | inline |
Matrix() | ipe::Matrix | inline |
Matrix(const Linear &linear) | ipe::Matrix | inline |
Matrix(const Linear &linear, const Vector &t) | ipe::Matrix | inlineexplicit |
Matrix(double m11, double m21, double m12, double m22, double t1, double t2) | ipe::Matrix | inlineexplicit |
Matrix(const Vector &v) | ipe::Matrix | inlineexplicit |
Matrix(String str) | ipe::Matrix | explicit |
operator*(const Vector &rhs) const | ipe::Matrix | inline |
operator*(const Bezier &rhs) const | ipe::Matrix | inline |
operator*(const Bezier &rhs) const | ipe::Matrix | related |
operator*(const Vector &rhs) const | ipe::Matrix | related |
operator*(const Matrix &lhs, const Matrix &rhs) | ipe::Matrix | related |
operator*(const Matrix &lhs, const Arc &rhs) | ipe::Matrix | related |
operator<<(Stream &stream, const Matrix &rhs) | ipe::Matrix | related |
operator==(const Matrix &rhs) const | ipe::Matrix | inline |
translation() const | ipe::Matrix | inline |
- Ipelib
-
- |
-
#include <ipefactory.h>
-Static Public Member Functions | |
static Object * | createObject (String name, const XmlAttributes &attr, String data) |
static Object * | createImage (String name, const XmlAttributes &attr, Bitmap bitmap) |
Factory for Ipe leaf objects.
-
-
|
- -static | -
Create an Ipe object by calling the right constructor.
- -Referenced by ipe::ImlParser::parseObject().
- -
-
|
- -static | -
Create an Image with a given bitmap.
- -Referenced by ipe::ImlParser::parseObject().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::ObjectFactory, including all inherited members.
-createImage(String name, const XmlAttributes &attr, Bitmap bitmap) | ipe::ObjectFactory | static |
createObject(String name, const XmlAttributes &attr, String data) | ipe::ObjectFactory | static |
- Ipelib
-
- |
-
#include <ipeobject.h>
Inherited by ipe::Group, ipe::Image, ipe::Path, ipe::Reference, and ipe::Text.
--Public Types | |
enum | Type { - EGroup, -EPath, -EText, -EImage, - - EReference - - } |
-Public Member Functions | |
virtual | ~Object ()=0 |
virtual void | accept (Visitor &visitor) const =0 |
virtual Object * | clone () const =0 |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Text * | asText () |
virtual Path * | asPath () |
virtual Image * | asImage () |
virtual Reference * | asReference () |
virtual Type | type () const =0 |
virtual TPinned | pinned () const |
void | setPinned (TPinned pin) |
TTransformations | transformations () const |
void | setTransformations (TTransformations trans) |
virtual void | setMatrix (const Matrix &matrix) |
const Matrix & | matrix () const |
virtual bool | setAttribute (Property prop, Attribute value) |
virtual Attribute | getAttribute (Property prop) const noexcept |
virtual void | saveAsXml (Stream &stream, String layer) const =0 |
virtual void | draw (Painter &painter) const =0 |
virtual void | drawSimple (Painter &painter) const =0 |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const =0 |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const =0 |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapCtl (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | checkStyle (const Cascade *sheet, AttributeSeq &seq) const |
-Protected Member Functions | |
Object () | |
Object (const AllAttributes &attr) | |
Object (const Object &rhs) | |
Object (const XmlAttributes &attr) | |
void | saveAttributesAsXml (Stream &stream, String layer) const |
-Static Protected Member Functions | |
static void | checkSymbol (Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) |
-Protected Attributes | |
Matrix | iMatrix |
TPinned | iPinned: 8 |
TTransformations | iTransformations: 8 |
Base class for all Ipe objects, composite or leaf.
-All objects are derived from this class. It provides functionality common to all objects, and carries the standard attributes.
-All Object's provide a constant time copy constructor (and a virtual Object::clone() method). Objects of non-constant size realize this by separating the implementation and using reference counting. In particular, copying a composite object does not create new copies of the components.
-Object has only three attributes: the transformation matrix, the pinning status, and the allowed transformations.
-If an object is pinned, it cannot be moved at all (or only in the non-pinned direction) from the Ipe user interface.
-Restricting the allowed transformations works somewhat differently: It doesn't stop transformations being applied to the object, but they only effect the position of the reference point (the origin of the object coordinate system), and (if transformations() == ETransformationsRigidMotions) the orientation of the object coordinate system.
-enum ipe::Object::Type | -
-
|
- -pure virtual | -
Pure virtual destructor.
- -
-
|
- -explicitprotected | -
Create object with identity matrix, no pinning, all transformations.
- -References ipe::ENoPin, ipe::ETransformationsAffine, iPinned, and iTransformations.
- -Referenced by matrix().
- -
-
|
- -explicitprotected | -
Create object by taking pinning/transforming from attr and setting identity matrix.
- -References iPinned, ipe::AllAttributes::iPinned, iTransformations, and ipe::AllAttributes::iTransformations.
- -
-
|
- -protected | -
Copy constructor.
- -References iMatrix, iPinned, and iTransformations.
- -
-
|
- -explicitprotected | -
Construct from XML stream.
- -
-
|
- -pure virtual | -
Calls visitXXX method of the visitor.
- -Implemented in ipe::Path, ipe::Group, ipe::Text, ipe::Reference, and ipe::Image.
- -Referenced by ipe::PdfWriter::createPageView(), ipe::PdfPainter::doDrawSymbol(), ipe::Document::findBitmaps(), ipe::Latex::scanObject(), ipe::BitmapFinder::scanPage(), and ipe::Latex::scanPage().
- -
-
|
- -pure virtual | -
Make a copy of this object (constant-time).
- -Implemented in ipe::Group, ipe::Reference, ipe::Text, ipe::Path, and ipe::Image.
- -Referenced by ipe::Symbol::operator=(), and ipe::Symbol::Symbol().
- -
-
|
- -virtual | -
Return pointer to this object if it is an Group, nullptr otherwise.
- -Reimplemented in ipe::Group.
- -Referenced by ipe::PdfWriter::createPageView().
- -
-
|
- -virtual | -
Return pointer to this object if it is an Group, nullptr otherwise.
- -Reimplemented in ipe::Group.
- -
-
|
- -virtual | -
-
|
- -virtual | -
-
|
- -virtual | -
Return pointer to this object if it is an Image , nullptr otherwise.
- -Reimplemented in ipe::Image.
- -
-
|
- -virtual | -
Return pointer to this object if it is an Ref, nullptr otherwise.
- -Reimplemented in ipe::Reference.
- -
-
|
- -pure virtual | -
Implemented in ipe::Group, ipe::Reference, ipe::Text, ipe::Path, and ipe::Image.
- -
-
|
- -virtual | -
Return pinning mode of the object.
- -Reimplemented in ipe::Group.
- -References iPinned.
- -Referenced by getAttribute(), ipe::Group::pinned(), ipe::Group::push_back(), and ipe::TransformTool::TransformTool().
- -void Object::setPinned | -( | -TPinned | -pin | ) | -- |
Set pinning mode of the object.
- -References iPinned.
- -
-
|
- -inline | -
Return allowed transformations of the object.
- -References iTransformations, matrix(), setMatrix(), and setTransformations().
- -Referenced by ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Group::drawSimple(), ipe::Path::drawSimple(), and ipe::Text::setAttribute().
- -void Object::setTransformations | -( | -TTransformations | -trans | ) | -- |
Set allowed transformations of the object.
- -References iTransformations.
- -Referenced by ipe::Text::setAttribute(), and transformations().
- -
-
|
- -virtual | -
Set the transformation matrix.
-Don't use this on an Object in a Page, because it wouldn't invalidate its bounding box. Call Page::transform instead.
- -Reimplemented in ipe::Path.
- -References iMatrix, and matrix().
- -Referenced by ipe::Page::applyTitleStyle(), ipe::Path::setMatrix(), ipe::Page::transform(), and transformations().
- -
-
|
- -inline | -
Return transformation matrix.
- -References addToBBox(), checkStyle(), checkSymbol(), distance(), draw(), drawSimple(), getAttribute(), iMatrix, Object(), saveAsXml(), saveAttributesAsXml(), setAttribute(), snapBnd(), snapCtl(), and snapVtx().
- -Referenced by ipe::Image::addToBBox(), ipe::Reference::addToBBox(), ipe::Group::addToBBox(), ipe::Path::addToBBox(), ipe::Text::checkStyle(), ipe::Path::clone(), ipe::Image::distance(), ipe::Reference::distance(), ipe::Group::distance(), ipe::Path::distance(), ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), ipe::Group::drawSimple(), ipe::Path::drawSimple(), ipe::Path::gradient(), setMatrix(), ipe::Group::snapBnd(), ipe::Path::snapBnd(), ipe::Image::snapCtl(), ipe::Text::snapCtl(), ipe::Group::snapCtl(), ipe::Path::snapCtl(), ipe::Reference::snapVtx(), ipe::Group::snapVtx(), ipe::Path::snapVtx(), and transformations().
- -
-
|
- -virtual | -
Set an attribute on this object.
-Returns true if an attribute was actually changed.
- -Reimplemented in ipe::Path, ipe::Group, ipe::Reference, ipe::Text, and ipe::Image.
- -References ipe::EPropPinned, ipe::EPropTransformations, iPinned, ipe::Attribute::isEnum(), iTransformations, ipe::Attribute::pinned(), and ipe::Attribute::transformations().
- -Referenced by matrix(), ipe::Image::setAttribute(), ipe::Text::setAttribute(), ipe::Reference::setAttribute(), ipe::Group::setAttribute(), ipe::Path::setAttribute(), and ipe::Page::setAttribute().
- -
-
|
- -virtualnoexcept | -
Get setting of an attribute of this object.
-If object does not have this attribute, returnes "undefined" attribute.
- -Reimplemented in ipe::Path, ipe::Group, ipe::Reference, ipe::Text, and ipe::Image.
- -References ipe::EPropPinned, ipe::EPropTransformations, iTransformations, pinned(), and ipe::Attribute::UNDEFINED().
- -Referenced by ipe::Image::getAttribute(), ipe::Text::getAttribute(), ipe::Reference::getAttribute(), ipe::Group::getAttribute(), ipe::Path::getAttribute(), and matrix().
- -
-
|
- -pure virtual | -
Save the object in XML format.
- -Implemented in ipe::Path, ipe::Group, ipe::Reference, ipe::Text, and ipe::Image.
- -Referenced by matrix().
- -
-
|
- -pure virtual | -
Draw the object.
- -Implemented in ipe::Path, ipe::Group, ipe::Reference, ipe::Text, and ipe::Image.
- -Referenced by ipe::PdfPainter::doDrawSymbol(), ipe::Painter::doDrawSymbol(), ipe::Path::drawArrow(), ipe::CanvasBase::drawObjects(), matrix(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -pure virtual | -
Draw simple version for selecting and transforming.
- -Implemented in ipe::Path, ipe::Group, ipe::Reference, ipe::Text, and ipe::Image.
- -Referenced by ipe::PanTool::draw(), ipe::SelectTool::draw(), ipe::TransformTool::draw(), ipe::Reference::drawSimple(), and matrix().
- -
-
|
- -pure virtual | -
Return distance of transformed object to point v. If larger than bound, can just return bound.
- -Implemented in ipe::Path, ipe::Group, ipe::Text, ipe::Reference, and ipe::Image.
- -Referenced by ipe::Page::distance(), and matrix().
- -
-
|
- -pure virtual | -
Extend box to include the object transformed by m.
-For objects in a page, don't call this directly. The Page caches the bounding box of each object, so it is far more efficient to call Page::bbox.
-Control points that lie outside the visual object are included if cp is true.
-If called with an empty box and cp == false
, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
Implemented in ipe::Path, ipe::Group, ipe::Text, ipe::Reference, and ipe::Image.
- -Referenced by matrix(), and ipe::SelectTool::mouseButton().
- -
-
|
- -virtual | -
Compute vertex snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented in ipe::Path, ipe::Group, and ipe::Reference.
- -Referenced by matrix(), and ipe::Page::snapVtx().
- -
-
|
- -virtual | -
Compute control point snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented in ipe::Path, ipe::Group, ipe::Text, and ipe::Image.
- -Referenced by matrix(), and ipe::Page::snapCtl().
- -
-
|
- -virtual | -
Compute boundary snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented in ipe::Path, ipe::Group, and ipe::Reference.
- -References ipe::Visitor::~Visitor().
- -Referenced by matrix(), and ipe::Page::snapBnd().
- -
-
|
- -virtual | -
Check all symbolic attributes.
- -Reimplemented in ipe::Group, ipe::Path, ipe::Reference, and ipe::Text.
- -Referenced by ipe::Document::checkStyle(), and matrix().
- -
-
|
- -protected | -
Write layer, pin, transformations, matrix to XML stream.
- -References ipe::EFixedPin, ipe::EHorizontalPin, ipe::String::empty(), ipe::ENoPin, ipe::ETransformationsRigidMotions, ipe::ETransformationsTranslations, ipe::EVerticalPin, iMatrix, iPinned, ipe::Matrix::isIdentity(), and iTransformations.
- -Referenced by matrix(), ipe::Image::saveAsXml(), ipe::Text::saveAsXml(), ipe::Reference::saveAsXml(), ipe::Group::saveAsXml(), and ipe::Path::saveAsXml().
- -
-
|
- -staticprotected | -
Check whether attribute is either absolute or defined in the style sheet cascade sheet. Add attr to seq if this is not the case.
- -References ipe::Cascade::findDefinition(), and ipe::Attribute::isSymbolic().
- -Referenced by ipe::Text::checkStyle(), ipe::Reference::checkStyle(), ipe::Path::checkStyle(), and matrix().
- -
-
|
- -protected | -
Referenced by matrix(), Object(), saveAttributesAsXml(), and setMatrix().
- -
-
|
- -protected | -
Referenced by ipe::Group::end(), Object(), pinned(), saveAttributesAsXml(), setAttribute(), and setPinned().
- -
-
|
- -protected | -
Referenced by ipe::Text::checkStyle(), getAttribute(), Object(), saveAttributesAsXml(), setAttribute(), setTransformations(), ipe::Text::Text(), and transformations().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Object, including all inherited members.
-accept(Visitor &visitor) const =0 | ipe::Object | pure virtual |
addToBBox(Rect &box, const Matrix &m, bool cp) const =0 | ipe::Object | pure virtual |
asGroup() | ipe::Object | virtual |
asGroup() const | ipe::Object | virtual |
asImage() | ipe::Object | virtual |
asPath() | ipe::Object | virtual |
asReference() | ipe::Object | virtual |
asText() | ipe::Object | virtual |
checkStyle(const Cascade *sheet, AttributeSeq &seq) const | ipe::Object | virtual |
checkSymbol(Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) | ipe::Object | protectedstatic |
clone() const =0 | ipe::Object | pure virtual |
distance(const Vector &v, const Matrix &m, double bound) const =0 | ipe::Object | pure virtual |
draw(Painter &painter) const =0 | ipe::Object | pure virtual |
drawSimple(Painter &painter) const =0 | ipe::Object | pure virtual |
EGroup enum value | ipe::Object | |
EImage enum value | ipe::Object | |
EPath enum value | ipe::Object | |
EReference enum value | ipe::Object | |
EText enum value | ipe::Object | |
getAttribute(Property prop) const noexcept | ipe::Object | virtual |
iMatrix | ipe::Object | protected |
iPinned | ipe::Object | protected |
iTransformations | ipe::Object | protected |
matrix() const | ipe::Object | inline |
Object() | ipe::Object | explicitprotected |
Object(const AllAttributes &attr) | ipe::Object | explicitprotected |
Object(const Object &rhs) | ipe::Object | protected |
Object(const XmlAttributes &attr) | ipe::Object | explicitprotected |
pinned() const | ipe::Object | virtual |
saveAsXml(Stream &stream, String layer) const =0 | ipe::Object | pure virtual |
saveAttributesAsXml(Stream &stream, String layer) const | ipe::Object | protected |
setAttribute(Property prop, Attribute value) | ipe::Object | virtual |
setMatrix(const Matrix &matrix) | ipe::Object | virtual |
setPinned(TPinned pin) | ipe::Object | |
setTransformations(TTransformations trans) | ipe::Object | |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
snapCtl(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
transformations() const | ipe::Object | inline |
Type enum name | ipe::Object | |
type() const =0 | ipe::Object | pure virtual |
~Object()=0 | ipe::Object | pure virtual |
- Ipelib
-
- |
-
#include <ipepage.h>
-Public Types | |
enum | SnapMode { SnapMode::Never, -SnapMode::Visible, -SnapMode::Always - } |
-Public Member Functions | |
Page () | |
void | saveAsXml (Stream &stream) const |
void | saveAsIpePage (Stream &stream) const |
void | saveSelection (Stream &stream) const |
int | countLayers () const noexcept |
String | layer (int index) const noexcept |
bool | isLocked (int i) const noexcept |
SnapMode | snapping (int i) const noexcept |
bool | objSnapsInView (int objNo, int view) const noexcept |
void | setLocked (int i, bool flag) |
void | setSnapping (int i, SnapMode mode) |
void | moveLayer (int index, int newIndex) |
int | findLayer (String name) const |
void | addLayer (String name) |
void | addLayer () |
void | removeLayer (String name) |
void | renameLayer (String oldName, String newName) |
void | setLayerData (int index, String data) |
String | layerData (int index) const |
int | countViews () const |
int | countMarkedViews () const |
Attribute | effect (int index) const |
void | setEffect (int index, Attribute sym) |
String | active (int index) const |
void | setActive (int index, String name) |
String | viewName (int index) const noexcept |
void | setViewName (int index, String name) noexcept |
bool | markedView (int index) const |
void | setMarkedView (int index, bool marked) |
void | insertView (int i, String active) |
void | removeView (int i) |
void | clearViews () |
int | findView (String viewNumberOrName) const |
const AttributeMap & | viewMap (int index) const |
void | setViewMap (int index, const AttributeMap &map) |
bool | visible (int view, int layer) const |
bool | objectVisible (int view, int objno) const |
std::vector< Matrix > | layerMatrices (int view) const |
void | clearLayerMatrices (int view) |
void | setLayerMatrix (int view, int layer, const Matrix &m) |
void | setVisible (int view, String layer, bool vis) |
String | title () const |
void | setTitle (String title) |
String | section (int level) const |
void | setSection (int level, bool useTitle, String name) |
bool | sectionUsesTitle (int level) const |
const Text * | titleText () const |
void | applyTitleStyle (const Cascade *sheet) |
bool | marked () const |
void | setMarked (bool marked) |
String | notes () const |
void | setNotes (String notes) |
int | count () const |
void | objectsPerLayer (std::vector< int > &objcounts) const |
Object * | object (int i) |
const Object * | object (int i) const |
TSelect | select (int i) const |
int | layerOf (int i) const |
void | setSelect (int i, TSelect sel) |
void | setLayerOf (int i, int layer) |
Rect | pageBBox (const Cascade *sheet) const |
Rect | viewBBox (const Cascade *sheet, int view) const |
Rect | bbox (int i) const |
void | transform (int i, const Matrix &m) |
double | distance (int i, const Vector &v, double bound) const |
void | snapVtx (int i, const Vector &mouse, Vector &pos, double &bound) const |
void | snapCtl (int i, const Vector &mouse, Vector &pos, double &bound) const |
void | snapBnd (int i, const Vector &mouse, Vector &pos, double &bound) const |
void | invalidateBBox (int i) const |
void | insert (int i, TSelect sel, int layer, Object *obj) |
void | append (TSelect sel, int layer, Object *obj) |
void | remove (int i) |
void | replace (int i, Object *obj) |
bool | setAttribute (int i, Property prop, Attribute value) |
int | primarySelection () const |
bool | hasSelection () const |
void | deselectAll () |
void | ensurePrimarySelection () |
-Static Public Member Functions | |
static Page * | basic () |
An Ipe document page.
-Its main ingredients are a sequence of Objects (with selection state, layer, and a cached bounding box), a set of Layers, and a sequence of Views.
-Each object on a Page belongs to one of the layers of the page. Layers are orthogonal to the back-to-front ordering of objects (in particular, they are not "layered" - the word is a misnomer). The "layer" is really just another attribute of the object.
-A Page is presented in a number of views. Each view presents some of the layers of the page. In addition, each view has an active layer (where objects are added when this view is shown in the UI), and possibly a transition effect (Acrobat Reader eye candy).
-A Page can be copied and assigned. The operation takes time linear in the number of top-level object on the page.
-
-
|
- -strong | -
-
|
- -explicit | -
The default constructor creates a new empty page.
-This page still needs a layer and a view to be usable!
- -Referenced by basic().
- -
-
|
- -static | -
Create a new empty page with standard settings.
-This is an empty page with layer 'alpha' and a single view.
- -References addLayer(), insertView(), Page(), and setVisible().
- -void Page::saveAsXml | -( | -Stream & | -stream | ) | -const | -
save page in XML format.
- -References active(), Always, ipe::AttributeMap::count(), countLayers(), countViews(), effect(), ipe::String::empty(), layer(), markedView(), Never, ipe::Stream::putXmlString(), ipe::AttributeMap::saveAsXml(), ipe::Attribute::string(), title(), viewMap(), viewName(), Visible, and visible().
- -Referenced by saveAsIpePage(), and ipe::Document::saveAsXml().
- -void Page::saveAsIpePage | -( | -Stream & | -stream | ) | -const | -
Copy whole page with bitmaps as <ipepage> into the stream.
- -References ipe::BitmapFinder::iBitmaps, saveAsXml(), ipe::Bitmap::saveAsXml(), ipe::BitmapFinder::scanPage(), and ipe::Bitmap::setObjNum().
- -void Page::saveSelection | -( | -Stream & | -stream | ) | -const | -
Copy selected objects as <ipeselection> into the stream.
- -References count(), ipe::BitmapFinder::iBitmaps, layer(), layerOf(), ipe::Bitmap::saveAsXml(), select(), and ipe::Bitmap::setObjNum().
- -
-
|
- -inlinenoexcept | -
Return number of layers.
- -Referenced by findLayer(), insertView(), layerMatrices(), objectsPerLayer(), pageBBox(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), removeView(), and saveAsXml().
- -
-
|
- -inlinenoexcept | -
Return name of layer index.
- -Referenced by append(), clearLayerMatrices(), findLayer(), insert(), moveLayer(), objSnapsInView(), pageBBox(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), saveAsXml(), saveSelection(), setActive(), setLayerMatrix(), setLayerOf(), and visible().
- -
-
|
- -inlinenoexcept | -
Is layer i locked?
- -Referenced by ipe::SelectTool::mouseButton(), ipe::ImlParser::parsePage(), and ipe::SelectTool::SelectTool().
- -
-
|
- -inlinenoexcept | -
Does layer i have snapping?
- -References addLayer(), findLayer(), moveLayer(), objSnapsInView(), removeLayer(), renameLayer(), setLayerData(), setLocked(), and setSnapping().
- -Referenced by objSnapsInView().
- -
-
|
- -noexcept | -
Snapping occurs if the layer is visible and has snapping enabled.
- -References Always, layer(), layerOf(), Never, snapping(), Visible, and visible().
- -Referenced by ipe::Snap::simpleSnap(), and snapping().
- -void Page::setLocked | -( | -int | -i, | -
- | - | bool | -flag | -
- | ) | -- |
Set locking of layer i.
- -Referenced by ipe::ImlParser::parsePage(), and snapping().
- -void Page::setSnapping | -( | -int | -i, | -
- | - | SnapMode | -mode | -
- | ) | -- |
Set snapping of layer i.
- -Referenced by ipe::ImlParser::parsePage(), and snapping().
- -void Page::moveLayer | -( | -int | -index, | -
- | - | int | -newIndex | -
- | ) | -- |
Moves the position of a layer in the layer list.
- -References layer().
- -Referenced by snapping().
- -int Page::findLayer | -( | -String | -name | ) | -const | -
Find layer with given name.
-Returns -1 if not found.
- -References countLayers(), and layer().
- -Referenced by addLayer(), ipe::PdfWriter::createPageView(), layerMatrices(), ipe::ImlParser::parseView(), removeLayer(), renameLayer(), ipe::Thumbnail::saveRender(), setActive(), setVisible(), snapping(), and ipe::PdfWriter::~PdfWriter().
- -void Page::addLayer | -( | -String | -name | ) | -- |
Add a new layer.
- -References countViews().
- -Referenced by basic(), and ipe::ImlParser::parsePage().
- -void Page::addLayer | -( | -) | -- |
void Page::removeLayer | -( | -String | -name | ) | -- |
Removes an empty layer from the page.
-All objects are adjusted. Panics if there are objects in the deleted layer, of if it is the only layer.
- -References findLayer().
- -Referenced by snapping().
- -void Page::setLayerData | -( | -int | -index, | -
- | - | String | -data | -
- | ) | -- |
Set free data field of the layer.
- -Referenced by ipe::ImlParser::parsePage(), and snapping().
- -
-
|
- -inline | -
Return layer data.
- -
-
|
- -inline | -
Return number of views.
- -References countMarkedViews().
- -Referenced by addLayer(), countMarkedViews(), ipe::Document::countTotalViews(), ipe::PageSelector::fill(), findView(), pageBBox(), ipe::ImlParser::parsePage(), ipe::ImlParser::parseView(), ipe::Document::runLatex(), and saveAsXml().
- -int Page::countMarkedViews | -( | -) | -const | -
References count(), countViews(), and markedView().
- -Referenced by countViews().
- -
-
|
- -inline | -
Return effect of view.
- -References setEffect().
- -Referenced by ipe::PdfWriter::createPageView(), and saveAsXml().
- -void Page::setEffect | -( | -int | -index, | -
- | - | Attribute | -sym | -
- | ) | -- |
Set effect of view.
-Panics if sym is not symbolic.
- -References ipe::Attribute::isSymbolic().
- -Referenced by effect(), and ipe::ImlParser::parsePage().
- -
-
|
- -inline | -
Return active layer of view.
- -References setActive().
- -Referenced by insertView(), markedView(), and saveAsXml().
- -void Page::setActive | -( | -int | -index, | -
- | - | String | -name | -
- | ) | -- |
Set active layer of view.
- -References findLayer(), and layer().
- -Referenced by active(), and ipe::ImlParser::parsePage().
- -
-
|
- -inlinenoexcept | -
Return name of view.
- -Referenced by ipe::PageSelector::fill(), findView(), and saveAsXml().
- -
-
|
- -inlinenoexcept | -
Set name of view.
- -Referenced by ipe::ImlParser::parsePage().
- -
-
|
- -inline | -
Return if view is marked.
- -References active(), clearViews(), findView(), insertView(), marked(), removeView(), and setMarkedView().
- -Referenced by countMarkedViews(), and saveAsXml().
- -void Page::setMarkedView | -( | -int | -index, | -
- | - | bool | -marked | -
- | ) | -- |
Set if view is marked.
- -References marked().
- -Referenced by markedView(), and ipe::ImlParser::parsePage().
- -void Page::insertView | -( | -int | -i, | -
- | - | String | -active | -
- | ) | -- |
Insert a new view at index i.
- -References active(), and countLayers().
- -Referenced by basic(), markedView(), and ipe::ImlParser::parsePage().
- -void Page::removeView | -( | -int | -i | ) | -- |
void Page::clearViews | -( | -) | -- |
Remove all views of this page.
- -Referenced by markedView().
- -int Page::findView | -( | -String | -s | ) | -const | -
Return index of view with given number or name.
-Input numbers are one-based. Returns -1 if no such view exists.
- -References countViews(), ipe::String::empty(), ipe::Lex::getInt(), and viewName().
- -Referenced by markedView().
- -
-
|
- -inline | -
References setViewMap().
- -Referenced by ipe::Thumbnail::render(), saveAsXml(), ipe::Thumbnail::saveRender(), and ipe::PdfWriter::~PdfWriter().
- -void Page::setViewMap | -( | -int | -index, | -
- | - | const AttributeMap & | -map | -
- | ) | -- |
Set the attribute mapping for the view.
- -References ipe::ENotSelected.
- -Referenced by ipe::ImlParser::parsePage(), and viewMap().
- -
-
|
- -inline | -
Is layer visible in view?
- -References layer().
- -Referenced by ipe::PdfWriter::createPageView(), objSnapsInView(), pageBBox(), and saveAsXml().
- -
-
|
- -inline | -
Is object at index objno visible in view?
- -References layerMatrices(), and layerOf().
- -Referenced by ipe::PdfWriter::createPageView(), ipe::PanTool::draw(), ipe::SelectTool::mouseButton(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), ipe::SelectTool::SelectTool(), viewBBox(), and ipe::PdfWriter::~PdfWriter().
- -std::vector< Matrix > Page::layerMatrices | -( | -int | -view | ) | -const | -
Return matrices for all layers.
- -References countLayers(), findLayer(), and ipe::size().
- -Referenced by objectVisible(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
References layer(), section(), setLayerMatrix(), setSection(), setTitle(), setVisible(), and title().
- -void Page::setLayerMatrix | -( | -int | -view, | -
- | - | int | -layer, | -
- | - | const Matrix & | -m | -
- | ) | -- |
Set matrix for the given layer in this view.
- -References ipe::Matrix::isIdentity(), and layer().
- -Referenced by clearLayerMatrices(), and ipe::ImlParser::parseView().
- -void Page::setVisible | -( | -int | -view, | -
- | - | String | -layer, | -
- | - | bool | -vis | -
- | ) | -- |
Set visibility of layer layer in view view.
- -References findLayer().
- -Referenced by basic(), clearLayerMatrices(), and ipe::ImlParser::parsePage().
- -String Page::title | -( | -) | -const | -
Return title of this page.
- -Referenced by applyTitleStyle(), clearLayerMatrices(), ipe::PageSelector::fill(), saveAsXml(), section(), setTitle(), and titleText().
- -void Page::setTitle | -( | -String | -title | ) | -- |
Set the title of this page.
-An empty title is not displayed.
- -References ipe::Text::setText(), and title().
- -Referenced by clearLayerMatrices(), and ipe::ImlParser::parsePage().
- -String Page::section | -( | -int | -level | ) | -const | -
Return section title at level.
-Level 0 is the section, level 1 the subsection.
- -References title().
- -Referenced by clearLayerMatrices(), and ipe::Document::findPage().
- -void Page::setSection | -( | -int | -level, | -
- | - | bool | -useTitle, | -
- | - | String | -name | -
- | ) | -- |
Set the section title at level.
-Level 0 is the section, level 1 the subsection.
-If useTitle is true
, then name is ignored, and the section title will be copied from the page title (and further changes to the page title are automatically reflected).
Referenced by clearLayerMatrices(), and ipe::ImlParser::parsePage().
- -
-
|
- -inline | -
Does this section title reflect the page title?
- -References applyTitleStyle(), and titleText().
- -const Text * Page::titleText | -( | -) | -const | -
Return Text object representing the title text.
-Return 0 if no title is set. Ownership of object remains with Page.
- -References title().
- -Referenced by ipe::Thumbnail::saveRender(), ipe::Latex::scanPage(), sectionUsesTitle(), and ipe::PdfWriter::~PdfWriter().
- -void Page::applyTitleStyle | -( | -const Cascade * | -sheet | ) | -- |
Apply styling to title text object.
- -References ipe::Cascade::findTitleStyle(), ipe::StyleSheet::TitleStyle::iColor, ipe::StyleSheet::TitleStyle::iHorizontalAlignment, ipe::StyleSheet::TitleStyle::iPos, ipe::StyleSheet::TitleStyle::iSize, ipe::StyleSheet::TitleStyle::iVerticalAlignment, ipe::Text::setHorizontalAlignment(), ipe::Object::setMatrix(), ipe::Text::setSize(), ipe::Text::setStroke(), ipe::Text::setVerticalAlignment(), and title().
- -Referenced by ipe::Latex::scanPage(), and sectionUsesTitle().
- -
-
|
- -inline | -
Return if page is marked for printing.
- -References setMarked().
- -Referenced by markedView(), setMarked(), and setMarkedView().
- -void Page::setMarked | -( | -bool | -marked | ) | -- |
Set if page is marked for printing.
- -References marked().
- -Referenced by marked(), and ipe::ImlParser::parsePage().
- -
-
|
- -inline | -
Return notes for this page.
- -References setNotes().
- -Referenced by ipe::PdfWriter::createPageView(), and setNotes().
- -void Page::setNotes | -( | -String | -notes | ) | -- |
Set the notes of this page.
- -References notes().
- -Referenced by notes(), and ipe::ImlParser::parsePage().
- -
-
|
- -inline | -
Return number of objects on the page.
- -References objectsPerLayer().
- -Referenced by ipe::Document::checkStyle(), countMarkedViews(), ipe::PdfWriter::createPageView(), deselectAll(), ipe::PanTool::draw(), ipe::TransformTool::draw(), ensurePrimarySelection(), hasSelection(), ipe::SelectTool::mouseButton(), pageBBox(), ipe::ImlParser::parsePage(), primarySelection(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), saveSelection(), ipe::BitmapFinder::scanPage(), ipe::Latex::scanPage(), ipe::SelectTool::SelectTool(), ipe::Snap::simpleSnap(), ipe::TransformTool::TransformTool(), viewBBox(), and ipe::PdfWriter::~PdfWriter().
- -void Page::objectsPerLayer | -( | -std::vector< int > & | -objcounts | ) | -const | -
Return number of objects in each layer.
- -References countLayers().
- -Referenced by count().
- -
-
|
- -inline | -
Return object at index i.
- -Referenced by ipe::Document::checkStyle(), ipe::PdfWriter::createPageView(), distance(), ipe::PanTool::draw(), ipe::SelectTool::draw(), ipe::TransformTool::draw(), ipe::SelectTool::mouseButton(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), ipe::BitmapFinder::scanPage(), ipe::Latex::scanPage(), setAttribute(), snapBnd(), snapCtl(), snapVtx(), transform(), ipe::TransformTool::TransformTool(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Return object at index i (const version).
- -
-
|
- -inline | -
Return selection status of object at index i.
- -Referenced by append(), ipe::TransformTool::draw(), ensurePrimarySelection(), hasSelection(), insert(), ipe::SelectTool::mouseButton(), primarySelection(), saveSelection(), and ipe::TransformTool::TransformTool().
- -
-
|
- -inline | -
Return layer of object at index i.
- -Referenced by ipe::SelectTool::mouseButton(), objectVisible(), objSnapsInView(), pageBBox(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), saveSelection(), ipe::SelectTool::SelectTool(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Set selection status of object at index i.
- -Referenced by deselectAll(), ensurePrimarySelection(), and ipe::SelectTool::mouseButton().
- -
-
|
- -inline | -
Set layer of object at index i.
- -References append(), bbox(), deselectAll(), distance(), ensurePrimarySelection(), hasSelection(), insert(), invalidateBBox(), layer(), ipe::Attribute::NORMAL(), pageBBox(), primarySelection(), replace(), setAttribute(), snapBnd(), snapCtl(), snapVtx(), transform(), and viewBBox().
- -Returns a precise bounding box for the artwork on the page.
-This is meant to be used as the bounding box in PDF output. It is computed by rendering all objects on the page that are visible in at least one view, plus all objects in a layer named "BBOX" (even if that is not visible), using a BBoxPainter.
- -References ipe::BBoxPainter::bbox(), count(), countLayers(), countViews(), layer(), layerOf(), and visible().
- -Referenced by ipe::PdfWriter::createPageView(), ipe::Thumbnail::saveRender(), and setLayerOf().
- -Rect Page::viewBBox | -( | -const Cascade * | -sheet, | -
- | - | int | -view | -
- | ) | -const | -
Returns a precise bounding box for the artwork in the view.
-This is meant to be used as the bounding box in PDF and EPS output. It is computed by rendering all objects in the page using a BBoxPainter.
- -References ipe::BBoxPainter::bbox(), count(), and objectVisible().
- -Referenced by ipe::PdfWriter::createPageView(), and setLayerOf().
- -Rect Page::bbox | -( | -int | -i | ) | -const | -
Return a bounding box for the object at index i.
-This is a bounding box including the control points of the object. If you need a tight bounding box, you'll need to use the Object directly.
-The Page caches the box the first time it is computed.
-Make sure you call Page::transform instead of Object::setMatrix, as the latter would not invalidate the bounding box.
- -Referenced by ipe::PdfWriter::createPageView(), distance(), setLayerOf(), snapBnd(), snapCtl(), snapVtx(), and ipe::TransformTool::TransformTool().
- -void Page::transform | -( | -int | -i, | -
- | - | const Matrix & | -m | -
- | ) | -- |
Transform the object at index i.
-Use this function instead of calling Object::setMatrix directly, as the latter doesn't invalidate the cached bounding box.
- -References invalidateBBox(), object(), and ipe::Object::setMatrix().
- -Referenced by setLayerOf().
- -double Page::distance | -( | -int | -i, | -
- | - | const Vector & | -v, | -
- | - | double | -bound | -
- | ) | -const | -
Return distance between object at index i and v.
-But may just return bound if the distance is larger. This function uses the cached bounded box, and is faster than calling Object::distance directly.
- -References bbox(), ipe::Object::distance(), and object().
- -Referenced by ipe::SelectTool::SelectTool(), and setLayerOf().
- -void Page::snapVtx | -( | -int | -i, | -
- | - | const Vector & | -mouse, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Compute possible vertex snapping position for object at index i.
-Looks only for positions closer than bound. If successful, modifies pos and bound.
- -References bbox(), object(), and ipe::Object::snapVtx().
- -Referenced by setLayerOf(), and ipe::Snap::simpleSnap().
- -void Page::snapCtl | -( | -int | -i, | -
- | - | const Vector & | -mouse, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Compute possible control point snapping position for object at index i.
-Looks only for positions closer than bound. If successful, modifies pos and bound.
- -References bbox(), object(), and ipe::Object::snapCtl().
- -Referenced by setLayerOf(), and ipe::Snap::simpleSnap().
- -void Page::snapBnd | -( | -int | -i, | -
- | - | const Vector & | -mouse, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Compute possible boundary snapping position for object at index i.
-Looks only for positions closer than bound. If successful, modifies pos and bound.
- -References bbox(), object(), and ipe::Object::snapBnd().
- -Referenced by setLayerOf(), and ipe::Snap::simpleSnap().
- -void Page::invalidateBBox | -( | -int | -i | ) | -const | -
Invalidate the bounding box at index i (the object is somehow changed).
- -Referenced by replace(), ipe::Latex::scanPage(), setAttribute(), setLayerOf(), and transform().
- -void Page::insert | -( | -int | -i, | -
- | - | TSelect | -select, | -
- | - | int | -layer, | -
- | - | Object * | -obj | -
- | ) | -- |
Insert a new object at index i.
-Takes ownership of the object.
- -References layer(), and select().
- -Referenced by ipe::ImlParser::parsePage(), and setLayerOf().
- -void Page::append | -( | -TSelect | -select, | -
- | - | int | -layer, | -
- | - | Object * | -obj | -
- | ) | -- |
Append a new object.
-Takes ownership of the object.
- -References layer(), and select().
- -Referenced by setLayerOf().
- -void Page::remove | -( | -int | -i | ) | -- |
Remove the object at index i.
- -void Page::replace | -( | -int | -i, | -
- | - | Object * | -obj | -
- | ) | -- |
Replace the object at index i.
-Takes ownership of obj.
- -References invalidateBBox().
- -Referenced by setLayerOf().
- -bool Page::setAttribute | -( | -int | -i, | -
- | - | Property | -prop, | -
- | - | Attribute | -value | -
- | ) | -- |
Set attribute prop of object at index i to value.
-This method automatically invalidates the bounding box if a ETextSize property is actually changed.
- -References ipe::EPropTextSize, ipe::EPropTransformations, invalidateBBox(), object(), and ipe::Object::setAttribute().
- -Referenced by setLayerOf().
- -int Page::primarySelection | -( | -) | -const | -
Return index of primary selection.
-Returns -1 if there is no primary selection.
- -References count(), ipe::EPrimarySelected, and select().
- -Referenced by ipe::SelectTool::mouseButton(), and setLayerOf().
- -bool Page::hasSelection | -( | -) | -const | -
Returns true iff any object on the page is selected.
- -References count(), and select().
- -Referenced by ipe::SelectTool::mouseButton(), and setLayerOf().
- -void Page::deselectAll | -( | -) | -- |
Deselect all objects.
- -References count(), ipe::ENotSelected, and setSelect().
- -Referenced by ipe::SelectTool::mouseButton(), and setLayerOf().
- -void Page::ensurePrimarySelection | -( | -) | -- |
If no object is the primary selection, make the topmost secondary selection the primary one.
- -References count(), ipe::EPrimarySelected, ipe::ESecondarySelected, select(), and setSelect().
- -Referenced by ipe::SelectTool::mouseButton(), and setLayerOf().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Page, including all inherited members.
-active(int index) const | ipe::Page | inline |
addLayer(String name) | ipe::Page | |
addLayer() | ipe::Page | |
append(TSelect sel, int layer, Object *obj) | ipe::Page | |
applyTitleStyle(const Cascade *sheet) | ipe::Page | |
basic() | ipe::Page | static |
bbox(int i) const | ipe::Page | |
clearLayerMatrices(int view) | ipe::Page | inline |
clearViews() | ipe::Page | |
count() const | ipe::Page | inline |
countLayers() const noexcept | ipe::Page | inline |
countMarkedViews() const | ipe::Page | |
countViews() const | ipe::Page | inline |
deselectAll() | ipe::Page | |
distance(int i, const Vector &v, double bound) const | ipe::Page | |
effect(int index) const | ipe::Page | inline |
ensurePrimarySelection() | ipe::Page | |
findLayer(String name) const | ipe::Page | |
findView(String viewNumberOrName) const | ipe::Page | |
hasSelection() const | ipe::Page | |
insert(int i, TSelect sel, int layer, Object *obj) | ipe::Page | |
insertView(int i, String active) | ipe::Page | |
invalidateBBox(int i) const | ipe::Page | |
isLocked(int i) const noexcept | ipe::Page | inline |
layer(int index) const noexcept | ipe::Page | inline |
layerData(int index) const | ipe::Page | inline |
layerMatrices(int view) const | ipe::Page | |
layerOf(int i) const | ipe::Page | inline |
marked() const | ipe::Page | inline |
markedView(int index) const | ipe::Page | inline |
moveLayer(int index, int newIndex) | ipe::Page | |
notes() const | ipe::Page | inline |
object(int i) | ipe::Page | inline |
object(int i) const | ipe::Page | inline |
objectsPerLayer(std::vector< int > &objcounts) const | ipe::Page | |
objectVisible(int view, int objno) const | ipe::Page | inline |
objSnapsInView(int objNo, int view) const noexcept | ipe::Page | |
Page() | ipe::Page | explicit |
pageBBox(const Cascade *sheet) const | ipe::Page | |
primarySelection() const | ipe::Page | |
remove(int i) | ipe::Page | |
removeLayer(String name) | ipe::Page | |
removeView(int i) | ipe::Page | |
renameLayer(String oldName, String newName) | ipe::Page | |
replace(int i, Object *obj) | ipe::Page | |
saveAsIpePage(Stream &stream) const | ipe::Page | |
saveAsXml(Stream &stream) const | ipe::Page | |
saveSelection(Stream &stream) const | ipe::Page | |
section(int level) const | ipe::Page | |
sectionUsesTitle(int level) const | ipe::Page | inline |
select(int i) const | ipe::Page | inline |
setActive(int index, String name) | ipe::Page | |
setAttribute(int i, Property prop, Attribute value) | ipe::Page | |
setEffect(int index, Attribute sym) | ipe::Page | |
setLayerData(int index, String data) | ipe::Page | |
setLayerMatrix(int view, int layer, const Matrix &m) | ipe::Page | |
setLayerOf(int i, int layer) | ipe::Page | inline |
setLocked(int i, bool flag) | ipe::Page | |
setMarked(bool marked) | ipe::Page | |
setMarkedView(int index, bool marked) | ipe::Page | |
setNotes(String notes) | ipe::Page | |
setSection(int level, bool useTitle, String name) | ipe::Page | |
setSelect(int i, TSelect sel) | ipe::Page | inline |
setSnapping(int i, SnapMode mode) | ipe::Page | |
setTitle(String title) | ipe::Page | |
setViewMap(int index, const AttributeMap &map) | ipe::Page | |
setViewName(int index, String name) noexcept | ipe::Page | inline |
setVisible(int view, String layer, bool vis) | ipe::Page | |
snapBnd(int i, const Vector &mouse, Vector &pos, double &bound) const | ipe::Page | |
snapCtl(int i, const Vector &mouse, Vector &pos, double &bound) const | ipe::Page | |
SnapMode enum name | ipe::Page | |
snapping(int i) const noexcept | ipe::Page | inline |
snapVtx(int i, const Vector &mouse, Vector &pos, double &bound) const | ipe::Page | |
title() const | ipe::Page | |
titleText() const | ipe::Page | |
transform(int i, const Matrix &m) | ipe::Page | |
viewBBox(const Cascade *sheet, int view) const | ipe::Page | |
viewMap(int index) const | ipe::Page | inline |
viewName(int index) const noexcept | ipe::Page | inline |
visible(int view, int layer) const | ipe::Page | inline |
- Ipelib
-
- |
-
#include <ipeselector_qt.h>
Inherits QListWidget.
--Signals | |
void | selectionMade () |
-Public Member Functions | |
PageSelector (QWidget *parent=nullptr) | |
void | fill (std::vector< QPixmap > &icons, std::vector< String > &labels) |
int | selectedIndex () const |
A Qt widget that displays a list of Ipe pages.
-PageSelector::PageSelector | -( | -QWidget * | -parent = nullptr | ) | -- |
Construct the widget.
-If page is negative, the last view of each page is shown. Otherwise, all views of this page are shown. itemWidth is the width of the page thumbnails (the height is computed automatically).
- -References selectionMade().
- -Referenced by fill().
- -void PageSelector::fill | -( | -std::vector< QPixmap > & | -icons, | -
- | - | std::vector< String > & | -labels | -
- | ) | -- |
References ipe::Document::countPages(), ipe::Page::countViews(), ipe::Buffer::data(), ipe::String::empty(), fill(), ipe::Thumbnail::height(), ipe::Document::page(), PageSelector(), ipe::Thumbnail::render(), selectedIndex(), selectionMade(), ipe::CanvasBase::selectPageOrView(), ipe::Page::title(), and ipe::Page::viewName().
- -Referenced by fill().
- -
-
|
- -inline | -
References selectionMade().
- -Referenced by fill().
- -
-
|
- -signal | -
Referenced by fill(), PageSelector(), and selectedIndex().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PageSelector, including all inherited members.
-fill(std::vector< QPixmap > &icons, std::vector< String > &labels) | ipe::PageSelector | |
PageSelector(QWidget *parent=nullptr) | ipe::PageSelector | |
selectedIndex() const | ipe::PageSelector | inline |
selectionMade() | ipe::PageSelector | signal |
- Ipelib
-
- |
-
#include <ipepainter.h>
Inherited by DecorationPainter, ipe::BBoxPainter, ipe::CairoPainter, ipe::PdfPainter, and IpeQtPainter.
--Classes | |
struct | State |
-Public Member Functions | |
Painter (const Cascade *style) | |
virtual | ~Painter () |
void | setAttributeMap (const AttributeMap *map) |
Attribute | lookup (Kind kind, Attribute sym) const |
void | transform (const Matrix &m) |
void | untransform (TTransformations trans) |
void | translate (const Vector &v) |
void | push () |
void | pop () |
void | pushMatrix () |
void | popMatrix () |
void | newPath () |
void | moveTo (const Vector &v) |
void | lineTo (const Vector &v) |
void | curveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
void | curveTo (const Bezier &bezier) |
void | rect (const Rect &re) |
void | drawEllipse () |
void | drawArc (const Arc &arc) |
void | closePath () |
void | drawPath (TPathMode mode) |
void | drawBitmap (Bitmap bitmap) |
void | drawText (const Text *text) |
void | drawSymbol (Attribute symbol) |
void | addClipPath () |
void | setStroke (Attribute color) |
void | setFill (Attribute color) |
void | setPen (Attribute pen) |
void | setDashStyle (Attribute dash) |
void | setLineCap (TLineCap cap) |
void | setLineJoin (TLineJoin join) |
void | setFillRule (TFillRule rule) |
void | setSymStroke (Attribute color) |
void | setSymFill (Attribute color) |
void | setSymPen (Attribute wid) |
void | setOpacity (Attribute opaq) |
void | setStrokeOpacity (Attribute opaq) |
void | setTiling (Attribute til) |
void | setGradient (Attribute grad) |
const Cascade * | cascade () const |
Color | stroke () const |
Color | fill () const |
const Matrix & | matrix () const |
Fixed | pen () const |
String | dashStyle () const |
void | dashStyle (std::vector< double > &dashes, double &offset) const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
Color | symStroke () const |
Color | symFill () const |
Fixed | symPen () const |
Fixed | opacity () const |
Fixed | strokeOpacity () const |
Attribute | tiling () const |
Attribute | gradient () const |
const State & | state () const |
void | setState (const State &state) |
-Protected Member Functions | |
virtual void | doPush () |
virtual void | doPop () |
virtual void | doNewPath () |
virtual void | doMoveTo (const Vector &v) |
virtual void | doLineTo (const Vector &v) |
virtual void | doCurveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
virtual void | doDrawArc (const Arc &arc) |
virtual void | doClosePath () |
virtual void | doDrawPath (TPathMode mode) |
virtual void | doDrawBitmap (Bitmap bitmap) |
virtual void | doDrawText (const Text *text) |
virtual void | doDrawSymbol (Attribute symbol) |
virtual void | doAddClipPath () |
void | drawArcAsBezier (double alpha) |
-Protected Attributes | |
std::list< State > | iState |
std::list< Matrix > | iMatrix |
const Cascade * | iCascade |
const AttributeMap * | iAttributeMap |
int | iInPath |
Interface for drawing.
-Painter-derived classes are used for drawing to the screen and for generating PDF and Postscript output.
-The Painter maintains a stack of graphics states, which includes stroke and fill color, line width, dash style, miter limit, line cap and line join. It also maintains a separate stack of transformation matrices. The Painter class takes care of maintaining the stacks, and setting of the attributes in the current graphics state.
-Setting an attribute with a symbolic value is resolved immediately using the stylesheet Cascade attached to the Painter, so calling the stroke() or fill() methods of Painter will return the current absolute color.
-It's okay to set symbolic attributes that the stylesheet does not define - they are set to a default absolute value (black, solid, etc.).
-The painter is either in "general" or in "path construction" mode. The newPath() member starts path construction mode. In this mode, only the path construction operators (moveTo, lineTo, curveTo, rect, drawArc, closePath), the transformation operators (transform, untransform, translate), and the matrix stack operators (pushMatrix, popMatrix) are admissible. The path is drawn using drawPath, this ends path construction mode. Path construction operators cannot be used in general mode.
-The graphics state for a path must be set before starting path construction mode, that is, before calling newPath().
-Derived classes need to implement the doXXX functions for drawing paths, images, and texts. The transformation matrix has already been applied to the coordinates passed to the doXXX functions.
-Painter::Painter | -( | -const Cascade * | -style | ) | -- |
Constructor takes a (cascaded) style sheet, which is not owned.
-The initial graphics state contains all default attributes.
- -References ipe::EPen, ipe::Cascade::fillRule(), ipe::Cascade::find(), iAttributeMap, iCascade, ipe::Painter::State::iDashStyle, ipe::Painter::State::iFill, ipe::Painter::State::iFillRule, ipe::Painter::State::iGradient, iInPath, ipe::Painter::State::iLineCap, ipe::Painter::State::iLineJoin, iMatrix, ipe::Painter::State::iOpacity, ipe::Painter::State::iPen, iState, ipe::Painter::State::iStroke, ipe::Painter::State::iStrokeOpacity, ipe::Painter::State::iSymFill, ipe::Painter::State::iSymPen, ipe::Painter::State::iSymStroke, ipe::Painter::State::iTiling, ipe::Cascade::lineCap(), ipe::Cascade::lineJoin(), ipe::Attribute::NORMAL(), ipe::Attribute::number(), and state().
- -
-
|
- -virtual | -
Virtual destructor.
- -void Painter::setAttributeMap | -( | -const AttributeMap * | -map | ) | -- |
Set a new attribute map.
- -References iAttributeMap.
- -Referenced by ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), and ipe::PdfWriter::~PdfWriter().
- -Attribute Painter::lookup | -( | -Kind | -kind, | -
- | - | Attribute | -sym | -
- | ) | -const | -
Lookup a symbolic attribute.
-Uses first the attribute map and then the stylesheet.
- -References ipe::Cascade::find(), iAttributeMap, iCascade, ipe::Attribute::isSymbolic(), and ipe::AttributeMap::map().
- -Referenced by ipe::Reference::draw(), setDashStyle(), setFill(), setOpacity(), setPen(), setStroke(), setStrokeOpacity(), setSymFill(), setSymPen(), and setSymStroke().
- -void Painter::transform | -( | -const Matrix & | -m | ) | -- |
Concatenate a matrix to current transformation matrix.
- -References iMatrix, and matrix().
- -Referenced by doDrawArc(), ipe::PdfPainter::doDrawText(), ipe::CairoPainter::doDrawText(), ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::TransformTool::draw(), ipe::Path::drawArrow(), Canvas::drawRect(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), ipe::Group::drawSimple(), and ipe::Path::drawSimple().
- -void Painter::untransform | -( | -TTransformations | -trans | ) | -- |
Reset transformation to original one, but with different origin/direction.
-This changes the current transformation matrix to the one set before the first push operation, but maintaining the current origin. Only the operations allowed in allowed are applied.
- -References ipe::Matrix::a, ipe::ETransformationsAffine, ipe::ETransformationsRigidMotions, iMatrix, matrix(), and ipe::Matrix::translation().
- -Referenced by ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), ipe::Group::drawSimple(), and ipe::Path::drawSimple().
- -void Painter::translate | -( | -const Vector & | -v | ) | -- |
Concatenate a translation to current transformation matrix.
- -References ipe::Matrix::a, iMatrix, matrix(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::PdfPainter::doDrawText(), ipe::CairoPainter::doDrawText(), ipe::PanTool::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Path::drawArrow(), ipe::Text::drawSimple(), and ipe::Reference::drawSimple().
- -void Painter::push | -( | -) | -- |
Save current graphics state.
-Cannot be called in path construction mode.
- -References doPush(), iInPath, iState, and state().
- -Referenced by ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Reference::drawSimple(), and ipe::Group::drawSimple().
- -void Painter::pop | -( | -) | -- |
Restore previous graphics state.
-Cannot be called in path construction mode.
- -References doPop(), iInPath, and iState.
- -Referenced by ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Reference::drawSimple(), and ipe::Group::drawSimple().
- -void Painter::pushMatrix | -( | -) | -- |
Save current transformation matrix.
- -References iMatrix, and matrix().
- -Referenced by doDrawArc(), ipe::PdfPainter::doDrawText(), ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), ipe::Group::drawSimple(), and ipe::Path::drawSimple().
- -void Painter::popMatrix | -( | -) | -- |
Restore previous transformation matrix.
- -References iMatrix.
- -Referenced by doDrawArc(), ipe::PdfPainter::doDrawText(), ipe::Image::draw(), ipe::Text::draw(), ipe::Reference::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), ipe::Group::drawSimple(), and ipe::Path::drawSimple().
- -void Painter::newPath | -( | -) | -- |
Enter path construction mode.
- -References doNewPath(), iInPath, and iState.
- -Referenced by ipe::PanTool::draw(), ipe::SelectTool::draw(), ipe::Group::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), ipe::Group::drawSimple(), and ipe::Path::drawSimple().
- -void Painter::moveTo | -( | -const Vector & | -v | ) | -- |
Start a new subpath.
- -References doMoveTo(), iInPath, and matrix().
- -Referenced by doDrawArc(), ipe::ClosedSpline::draw(), ipe::Curve::draw(), ipe::Path::drawArrow(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), and rect().
- -void Painter::lineTo | -( | -const Vector & | -v | ) | -- |
Add line segment to current subpath.
- -References doLineTo(), iInPath, and matrix().
- -Referenced by ipe::CurveSegment::draw(), ipe::Path::drawArrow(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), and rect().
- -void Painter::curveTo | -( | -const Vector & | -v1, | -
- | - | const Vector & | -v2, | -
- | - | const Vector & | -v3 | -
- | ) | -- |
Add a Bezier segment to current subpath.
- -References doCurveTo(), iInPath, and matrix().
- -Referenced by curveTo(), ipe::CurveSegment::draw(), ipe::ClosedSpline::draw(), and drawArcAsBezier().
- -
-
|
- -inline | -
Overloaded function.
-Assumes current position is bezier.iV
[0]
References curveTo(), and ipe::Bezier::iV.
- -void Painter::rect | -( | -const Rect & | -re | ) | -- |
Add a rectangle subpath to the path.
-This is implemented in terms of moveTo() and lineTo().
- -References ipe::Rect::bottomLeft(), ipe::Rect::bottomRight(), closePath(), lineTo(), moveTo(), ipe::Rect::topLeft(), and ipe::Rect::topRight().
- -Referenced by ipe::PanTool::draw(), ipe::SelectTool::draw(), and ipe::Image::drawSimple().
- -void ipe::Painter::drawEllipse | -( | -) | -- |
void Painter::drawArc | -( | -const Arc & | -arc | ) | -- |
Add an elliptic arc to current path.
-Assumes the current point is arc.beginp().
- -References doDrawArc(), and iInPath.
- -Referenced by ipe::SelectTool::draw(), ipe::CurveSegment::draw(), ipe::Ellipse::draw(), and ipe::Path::drawArrow().
- -void Painter::closePath | -( | -) | -- |
Close the current subpath.
- -References doClosePath(), and iInPath.
- -Referenced by ipe::SelectTool::draw(), ipe::ClosedSpline::draw(), ipe::Curve::draw(), ipe::Path::drawArrow(), ipe::Text::drawSimple(), and rect().
- -void Painter::drawPath | -( | -TPathMode | -mode | ) | -- |
Fill and/or stroke a path.
-As in PDF, a "path" can consist of several subpaths. Whether it is filled or stroked depends on mode.
- -References doDrawPath(), and iInPath.
- -Referenced by ipe::PanTool::draw(), ipe::SelectTool::draw(), ipe::Path::draw(), ipe::Path::drawArrow(), ipe::Image::drawSimple(), ipe::Text::drawSimple(), ipe::Reference::drawSimple(), and ipe::Path::drawSimple().
- -void Painter::drawBitmap | -( | -Bitmap | -bitmap | ) | -- |
Render a bitmap.
-Assumes the transformation matrix has been set up to map the unit square to the image area on the paper.
- -References doDrawBitmap(), and iInPath.
- -Referenced by ipe::Image::draw().
- -void Painter::drawText | -( | -const Text * | -text | ) | -- |
Render a text object.
-Stroke color is already set, and the origin is the lower-left corner of the text box (not the reference point!).
- -References doDrawText(), and iInPath.
- -Referenced by ipe::Text::draw().
- -void Painter::drawSymbol | -( | -Attribute | -symbol | ) | -- |
Render a symbol.
-The current coordinate system is already the symbol coordinate system. If the symbol is parameterized, then sym-stroke, sym-fill, and sym-pen are already set.
- -References doDrawSymbol(), and iInPath.
- -Referenced by ipe::Reference::draw().
- -void Painter::addClipPath | -( | -) | -- |
Add current path as clip path.
- -References doAddClipPath(), and iInPath.
- -Referenced by ipe::Group::draw(), and ipe::Group::drawSimple().
- -void Painter::setStroke | -( | -Attribute | -color | ) | -- |
Set stroke color, resolving symbolic color and "sym-x" colors.
- -References ipe::Attribute::color(), ipe::EColor, iInPath, iState, lookup(), ipe::Attribute::SYM_FILL(), and ipe::Attribute::SYM_STROKE().
- -Referenced by ipe::PanTool::draw(), ipe::Text::draw(), ipe::SelectTool::draw(), ipe::Path::draw(), ipe::TransformTool::draw(), ipe::Path::drawArrow(), and ipe::CanvasBase::drawTool().
- -void Painter::setFill | -( | -Attribute | -color | ) | -- |
Set fill color, resolving symbolic color.
- -References ipe::Attribute::color(), ipe::EColor, iInPath, iState, lookup(), ipe::Attribute::SYM_FILL(), and ipe::Attribute::SYM_STROKE().
- -Referenced by ipe::Path::draw(), and ipe::Path::drawArrow().
- -void Painter::setPen | -( | -Attribute | -pen | ) | -- |
Set pen, resolving symbolic value.
- -References ipe::EPen, iInPath, iState, lookup(), ipe::Attribute::number(), and ipe::Attribute::SYM_PEN().
- -Referenced by ipe::Path::draw(), and ipe::CanvasBase::drawTool().
- -void Painter::setDashStyle | -( | -Attribute | -dash | ) | -- |
Set dash style, resolving symbolic value.
- -References ipe::EDashStyle, iInPath, iState, lookup(), and ipe::Attribute::string().
- -Referenced by ipe::Path::draw().
- -void Painter::setLineCap | -( | -TLineCap | -cap | ) | -- |
Set line cap.
-If cap is EDefaultCap, the current setting remains unchanged.
- -References ipe::EDefaultCap, iInPath, and iState.
- -Referenced by ipe::Path::draw().
- -void Painter::setLineJoin | -( | -TLineJoin | -join | ) | -- |
Set line join.
-If join is EDefaultJoin, the current setting remains unchanged.
- -References ipe::EDefaultJoin, iInPath, and iState.
- -Referenced by ipe::Path::draw().
- -void Painter::setFillRule | -( | -TFillRule | -rule | ) | -- |
Set fill rule (wind or even-odd).
-If the rule is EDefaultRule, the current setting remains unchanged.
- -References ipe::EDefaultRule, iInPath, and iState.
- -Referenced by ipe::Path::draw().
- -void Painter::setSymStroke | -( | -Attribute | -color | ) | -- |
Set symbol stroke color, resolving symbolic color.
- -References ipe::Attribute::color(), ipe::EColor, iInPath, iState, lookup(), ipe::Attribute::SYM_FILL(), and ipe::Attribute::SYM_STROKE().
- -Referenced by ipe::Reference::draw(), and ipe::Path::drawArrow().
- -void Painter::setSymFill | -( | -Attribute | -color | ) | -- |
Set symbol fill color, resolving symbolic color.
- -References ipe::Attribute::color(), ipe::EColor, iInPath, iState, lookup(), ipe::Attribute::SYM_FILL(), and ipe::Attribute::SYM_STROKE().
- -Referenced by ipe::Reference::draw(), and ipe::Path::drawArrow().
- -void Painter::setSymPen | -( | -Attribute | -wid | ) | -- |
Set symbol pen, resolving symbolic pen.
- -References ipe::EPen, iInPath, iState, lookup(), ipe::Attribute::number(), and ipe::Attribute::SYM_PEN().
- -Referenced by ipe::Reference::draw(), and ipe::Path::drawArrow().
- -void Painter::setOpacity | -( | -Attribute | -opaq | ) | -- |
Set opacity.
- -References ipe::EOpacity, iInPath, iState, lookup(), and ipe::Attribute::number().
- -Referenced by ipe::Image::draw(), ipe::Text::draw(), and ipe::Path::draw().
- -void Painter::setStrokeOpacity | -( | -Attribute | -opaq | ) | -- |
Set stroke opacity.
- -References ipe::EOpacity, iInPath, iState, lookup(), and ipe::Attribute::number().
- -Referenced by ipe::Path::draw().
- -void Painter::setTiling | -( | -Attribute | -tiling | ) | -- |
Set tiling pattern.
-If tiling is not normal
, resets the gradient pattern.
References iInPath, ipe::Attribute::isNormal(), iState, ipe::Attribute::NORMAL(), and tiling().
- -Referenced by ipe::Path::draw().
- -void Painter::setGradient | -( | -Attribute | -grad | ) | -- |
Set gradient fill.
-If grad is not normal
, resets the tiling pattern.
References iInPath, ipe::Attribute::isNormal(), iState, and ipe::Attribute::NORMAL().
- -Referenced by ipe::Path::draw().
- -
-
|
- -inline | -
Return style sheet cascade.
- -References iCascade.
- -Referenced by ipe::CairoPainter::doDrawPath(), ipe::PdfPainter::doDrawSymbol(), doDrawSymbol(), ipe::BBoxPainter::doDrawText(), ipe::Reference::draw(), ipe::Path::drawArrow(), ipe::Reference::drawSimple(), and ipe::Group::saveAsXml().
- -
-
|
- -inline | -
Return current stroke color.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), ipe::Path::drawArrow(), ipe::CairoPainter::executeStream(), and ipe::CairoPainter::type3Font().
- -
-
|
- -inline | -
Return current fill color.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::executeStream(), and ipe::CairoPainter::type3Font().
- -
-
|
- -inline | -
Return current transformation matrix.
- -References iMatrix.
- -Referenced by curveTo(), ipe::CairoPainter::doDrawArc(), ipe::BBoxPainter::doDrawBitmap(), ipe::PdfPainter::doDrawBitmap(), ipe::CairoPainter::doDrawBitmap(), ipe::PdfPainter::doDrawPath(), ipe::CairoPainter::doDrawPath(), ipe::BBoxPainter::doDrawText(), ipe::PdfPainter::doDrawText(), ipe::CairoPainter::doDrawText(), ipe::Group::draw(), ipe::Path::draw(), ipe::CairoPainter::executeStream(), lineTo(), moveTo(), pushMatrix(), transform(), translate(), and untransform().
- -
-
|
- -inline | -
Return current pen.
- -References iState.
- -Referenced by ipe::BBoxPainter::doDrawPath(), ipe::CairoPainter::doDrawPath(), and ipe::Path::drawArrow().
- -
-
|
- -inline | -
Return current dash style (always absolute attribute).
- -References iState.
- -Referenced by dashStyle(), and ipe::CairoPainter::doDrawPath().
- -void Painter::dashStyle | -( | -std::vector< double > & | -dashes, | -
- | - | double & | -offset | -
- | ) | -const | -
Return dashstyle as a double sequence.
- -References dashStyle(), ipe::String::find(), and ipe::String::substr().
- -
-
|
- -inline | -
Return current line cap.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath().
- -
-
|
- -inline | -
Return current line join.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath().
- -
-
|
- -inline | -
Return current fill rule.
- -References iState.
- -Referenced by ipe::PdfPainter::doDrawPath(), and ipe::CairoPainter::doDrawPath().
- -
-
|
- -inline | -
Return current symbol stroke color.
- -References iState.
- -
-
|
- -inline | -
Return current symbol fill color.
- -References iState.
- -
-
|
- -inline | -
Return current symbol pen.
- -References iState.
- -
-
|
- -inline | -
Return current opacity.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawBitmap(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), and ipe::CairoPainter::executeStream().
- -
-
|
- -inline | -
Return current stroke opacity.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath().
- -
-
|
- -inline | -
Return current tiling.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath(), ipe::PdfPainter::doDrawSymbol(), and setTiling().
- -
-
|
- -inline | -
Return current gradient fill.
- -References iState.
- -Referenced by ipe::CairoPainter::doDrawPath().
- -
-
|
- -inline | -
Return full current graphics state.
- -References doAddClipPath(), doClosePath(), doCurveTo(), doDrawArc(), doDrawBitmap(), doDrawPath(), doDrawSymbol(), doDrawText(), doLineTo(), doMoveTo(), doNewPath(), doPop(), doPush(), drawArcAsBezier(), iState, and setState().
- -Referenced by ipe::PdfPainter::doPush(), Painter(), ipe::PdfPainter::PdfPainter(), push(), and setState().
- -void Painter::setState | -( | -const State & | -state | ) | -- |
-
|
- -protectedvirtual | -
Perform graphics state push on output medium.
- -Reimplemented in ipe::CairoPainter, ipe::PdfPainter, and ipe::BBoxPainter.
- - - -
-
|
- -protectedvirtual | -
Perform graphics state pop on output medium.
- -Reimplemented in ipe::CairoPainter, ipe::PdfPainter, and ipe::BBoxPainter.
- - - -
-
|
- -protectedvirtual | -
Perform new path operator.
- -Reimplemented in ipe::PdfPainter, ipe::BBoxPainter, and ipe::PsPainter.
- - - -
-
|
- -protectedvirtual | -
Perform moveto operator.
-The transformation matrix has already been applied.
- -Reimplemented in ipe::PdfPainter, ipe::BBoxPainter, and ipe::CairoPainter.
- - - -
-
|
- -protectedvirtual | -
Perform lineto operator.
-The transformation matrix has already been applied.
- -Reimplemented in ipe::PdfPainter, ipe::BBoxPainter, and ipe::CairoPainter.
- - - -
-
|
- -protectedvirtual | -
Perform curveto operator.
-The transformation matrix has already been applied.
- -Reimplemented in ipe::PdfPainter, ipe::BBoxPainter, and ipe::CairoPainter.
- - - -
-
|
- -protectedvirtual | -
Draw an elliptic arc.
-The default implementations calls drawArcAsBezier(). The transformation matrix has not yet been applied to arc.
- -Reimplemented in ipe::CairoPainter.
- -References drawArcAsBezier(), ipe::Arc::iAlpha, ipe::Arc::iBeta, ipe::Arc::iM, ipe::Arc::isEllipse(), moveTo(), ipe::Angle::normalize(), popMatrix(), pushMatrix(), and transform().
- - - -
-
|
- -protectedvirtual | -
Perform closepath operator.
- -Reimplemented in ipe::PdfPainter, and ipe::CairoPainter.
- -Referenced by closePath(), and state().
- -
-
|
- -protectedvirtual | -
Actually draw the path.
- -Reimplemented in ipe::CairoPainter, ipe::PdfPainter, ipe::BBoxPainter, and ipe::PsPainter.
- -Referenced by drawPath(), and state().
- -
-
|
- -protectedvirtual | -
Draw a bitmap.
- -Reimplemented in ipe::CairoPainter, ipe::PdfPainter, ipe::BBoxPainter, and ipe::PsPainter.
- -Referenced by drawBitmap(), and state().
- -
-
|
- -protectedvirtual | -
Draw a text object.
- -Reimplemented in ipe::CairoPainter, ipe::PdfPainter, and ipe::BBoxPainter.
- -Referenced by drawText(), and state().
- -
-
|
- -protectedvirtual | -
Draw a symbol.
-The default implementation calls the draw method of the object. Only PDF drawing overrides this to reuse a PDF XForm.
- -Reimplemented in ipe::PdfPainter.
- -References cascade(), ipe::Object::draw(), ipe::ESymbol, ipe::Cascade::findSymbol(), iAttributeMap, ipe::Symbol::iObject, and ipe::AttributeMap::map().
- -Referenced by drawSymbol(), and state().
- -
-
|
- -protectedvirtual | -
Add a clip path.
- -Reimplemented in ipe::PdfPainter, ipe::BBoxPainter, ipe::CairoPainter, and ipe::PsPainter.
- -Referenced by addClipPath(), and state().
- -
-
|
- -protected | -
Draw an arc of the unit circle of length alpha.
-PDF does not have an "arc" or "circle" primitive, so to draw an arc, circle, or ellipse, Ipe has to translate it into a sequence of Bezier curves.
-The approximation is based on the following: The unit circle arc from (1,0) to (cos a, sin a) be approximated by a Bezier spline with control points (1, 0), (1, beta) and their mirror images along the line with slope a/2, where beta = 4.0 * (1.0 - cos(a/2)) / (3 * sin(a/2))
-Ipe draws circles by drawing four Bezier curves for the quadrants, and arcs by patching together quarter circle approximations with a piece computed from the formula above.
-alpha is normalized to [0, 2 pi], and applied starting from the point (1,0).
-The function generates a sequence of Bezier splines as calls to curveTo. It is assumed that the caller has already executed a moveTo to the beginning of the arc at (1,0).
-This function may modify the transformation matrix.
- -References curveTo().
- -Referenced by doDrawArc(), and state().
- -
-
|
- -protected | -
Referenced by dashStyle(), ipe::PdfPainter::doDrawPath(), ipe::PdfPainter::drawAttributes(), ipe::PdfPainter::drawOpacity(), fill(), fillRule(), gradient(), lineCap(), lineJoin(), newPath(), opacity(), Painter(), pen(), pop(), push(), setDashStyle(), setFill(), setFillRule(), setGradient(), setLineCap(), setLineJoin(), setOpacity(), setPen(), setState(), setStroke(), setStrokeOpacity(), setSymFill(), setSymPen(), setSymStroke(), setTiling(), state(), stroke(), strokeOpacity(), symFill(), symPen(), symStroke(), and tiling().
- -
-
|
- -protected | -
Referenced by matrix(), Painter(), popMatrix(), pushMatrix(), transform(), translate(), and untransform().
- -
-
|
- -protected | -
Referenced by cascade(), ipe::PdfPainter::doDrawPath(), ipe::CairoPainter::executeStream(), lookup(), and Painter().
- -
-
|
- -protected | -
Referenced by doDrawSymbol(), lookup(), Painter(), and setAttributeMap().
- -
-
|
- -protected | -
Referenced by addClipPath(), closePath(), curveTo(), drawArc(), drawBitmap(), drawPath(), drawSymbol(), drawText(), lineTo(), moveTo(), newPath(), Painter(), pop(), push(), setDashStyle(), setFill(), setFillRule(), setGradient(), setLineCap(), setLineJoin(), setOpacity(), setPen(), setStroke(), setStrokeOpacity(), setSymFill(), setSymPen(), setSymStroke(), and setTiling().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Painter, including all inherited members.
-addClipPath() | ipe::Painter | |
cascade() const | ipe::Painter | inline |
closePath() | ipe::Painter | |
curveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::Painter | |
curveTo(const Bezier &bezier) | ipe::Painter | inline |
dashStyle() const | ipe::Painter | inline |
dashStyle(std::vector< double > &dashes, double &offset) const | ipe::Painter | |
doAddClipPath() | ipe::Painter | protectedvirtual |
doClosePath() | ipe::Painter | protectedvirtual |
doCurveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::Painter | protectedvirtual |
doDrawArc(const Arc &arc) | ipe::Painter | protectedvirtual |
doDrawBitmap(Bitmap bitmap) | ipe::Painter | protectedvirtual |
doDrawPath(TPathMode mode) | ipe::Painter | protectedvirtual |
doDrawSymbol(Attribute symbol) | ipe::Painter | protectedvirtual |
doDrawText(const Text *text) | ipe::Painter | protectedvirtual |
doLineTo(const Vector &v) | ipe::Painter | protectedvirtual |
doMoveTo(const Vector &v) | ipe::Painter | protectedvirtual |
doNewPath() | ipe::Painter | protectedvirtual |
doPop() | ipe::Painter | protectedvirtual |
doPush() | ipe::Painter | protectedvirtual |
drawArc(const Arc &arc) | ipe::Painter | |
drawArcAsBezier(double alpha) | ipe::Painter | protected |
drawBitmap(Bitmap bitmap) | ipe::Painter | |
drawEllipse() | ipe::Painter | |
drawPath(TPathMode mode) | ipe::Painter | |
drawSymbol(Attribute symbol) | ipe::Painter | |
drawText(const Text *text) | ipe::Painter | |
fill() const | ipe::Painter | inline |
fillRule() const | ipe::Painter | inline |
gradient() const | ipe::Painter | inline |
iAttributeMap | ipe::Painter | protected |
iCascade | ipe::Painter | protected |
iInPath | ipe::Painter | protected |
iMatrix | ipe::Painter | protected |
iState | ipe::Painter | protected |
lineCap() const | ipe::Painter | inline |
lineJoin() const | ipe::Painter | inline |
lineTo(const Vector &v) | ipe::Painter | |
lookup(Kind kind, Attribute sym) const | ipe::Painter | |
matrix() const | ipe::Painter | inline |
moveTo(const Vector &v) | ipe::Painter | |
newPath() | ipe::Painter | |
opacity() const | ipe::Painter | inline |
Painter(const Cascade *style) | ipe::Painter | |
pen() const | ipe::Painter | inline |
pop() | ipe::Painter | |
popMatrix() | ipe::Painter | |
push() | ipe::Painter | |
pushMatrix() | ipe::Painter | |
rect(const Rect &re) | ipe::Painter | |
setAttributeMap(const AttributeMap *map) | ipe::Painter | |
setDashStyle(Attribute dash) | ipe::Painter | |
setFill(Attribute color) | ipe::Painter | |
setFillRule(TFillRule rule) | ipe::Painter | |
setGradient(Attribute grad) | ipe::Painter | |
setLineCap(TLineCap cap) | ipe::Painter | |
setLineJoin(TLineJoin join) | ipe::Painter | |
setOpacity(Attribute opaq) | ipe::Painter | |
setPen(Attribute pen) | ipe::Painter | |
setState(const State &state) | ipe::Painter | |
setStroke(Attribute color) | ipe::Painter | |
setStrokeOpacity(Attribute opaq) | ipe::Painter | |
setSymFill(Attribute color) | ipe::Painter | |
setSymPen(Attribute wid) | ipe::Painter | |
setSymStroke(Attribute color) | ipe::Painter | |
setTiling(Attribute til) | ipe::Painter | |
state() const | ipe::Painter | inline |
stroke() const | ipe::Painter | inline |
strokeOpacity() const | ipe::Painter | inline |
symFill() const | ipe::Painter | inline |
symPen() const | ipe::Painter | inline |
symStroke() const | ipe::Painter | inline |
tiling() const | ipe::Painter | inline |
transform(const Matrix &m) | ipe::Painter | |
translate(const Vector &v) | ipe::Painter | |
untransform(TTransformations trans) | ipe::Painter | |
~Painter() | ipe::Painter | virtual |
- Ipelib
-
- |
-
#include <ipetool.h>
Inherits ipe::Tool.
--Public Member Functions | |
PanTool (CanvasBase *canvas, const Page *page, int view) | |
virtual void | draw (Painter &painter) const |
virtual void | mouseButton (int button, bool press) |
virtual void | mouseMove () |
Public Member Functions inherited from ipe::Tool | |
virtual | ~Tool () |
virtual bool | key (String text, int modifiers) |
virtual void | snapVtx (const Vector &mouse, Vector &pos, double &bound, bool cp) const |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::Tool | |
Tool (CanvasBase *canvas) | |
Protected Attributes inherited from ipe::Tool | |
CanvasBase * | iCanvas |
A tool for panning the canvas.
-PanTool::PanTool | -( | -CanvasBase * | -canvas, | -
- | - | const Page * | -page, | -
- | - | int | -view | -
- | ) | -- |
References ipe::CanvasBase::EHandCursor, ipe::Tool::iCanvas, ipe::CanvasBase::setCursor(), ipe::CanvasBase::unsnappedPos(), and ipe::Vector::ZERO.
- -
-
|
- -virtual | -
Implements ipe::Tool.
- -References ipe::CanvasBase::cascade(), ipe::Page::count(), ipe::Painter::drawPath(), ipe::Object::drawSimple(), ipe::EStrokedOnly, ipe::Cascade::findLayout(), ipe::Tool::iCanvas, ipe::Layout::iOrigin, ipe::Layout::iPaperSize, ipe::Painter::newPath(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Painter::rect(), ipe::Painter::setStroke(), and ipe::Painter::translate().
- -
-
|
- -virtual | -
Called when a mouse button is pressed or released on the canvas.
-button is 1, 2, or 3, with Shift/Ctrl/Alt/Meta modifiers added in (as defined in CanvasBase::TModifiers. press is true for button-down, and false for button-up.
- -Reimplemented from ipe::Tool.
- -References ipe::CanvasBase::finishTool(), ipe::Tool::iCanvas, ipe::CanvasBase::pan(), ipe::CanvasBase::setPan(), and ipe::CanvasBase::unsnappedPos().
- -
-
|
- -virtual | -
Called when the mouse is moved on the canvas.
- -Reimplemented from ipe::Tool.
- -References ipe::SelectTool::SObj::distance, ipe::Tool::iCanvas, ipe::CanvasBase::unsnappedPos(), and ipe::CanvasBase::updateTool().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PanTool, including all inherited members.
-draw(Painter &painter) const | ipe::PanTool | virtual |
iCanvas | ipe::Tool | protected |
key(String text, int modifiers) | ipe::Tool | virtual |
mouseButton(int button, bool press) | ipe::PanTool | virtual |
mouseMove() | ipe::PanTool | virtual |
PanTool(CanvasBase *canvas, const Page *page, int view) | ipe::PanTool | |
snapVtx(const Vector &mouse, Vector &pos, double &bound, bool cp) const | ipe::Tool | virtual |
Tool(CanvasBase *canvas) | ipe::Tool | protected |
~Tool() | ipe::Tool | virtual |
- Ipelib
-
- |
-
#include <ipepath.h>
Inherits ipe::Object.
--Public Member Functions | |
Path (const AllAttributes &attr, const Shape &shape, bool withArrows=false) | |
virtual Object * | clone () const override |
virtual Path * | asPath () override |
virtual Type | type () const override |
void | setPathMode (TPathMode pm) |
void | setStroke (Attribute stroke) |
void | setFill (Attribute fill) |
void | setPen (Attribute pen) |
void | setDashStyle (Attribute dash) |
void | setLineCap (TLineCap s) |
void | setLineJoin (TLineJoin s) |
void | setFillRule (TFillRule s) |
void | setOpacity (Attribute opaq) |
void | setStrokeOpacity (Attribute opaq) |
void | setTiling (Attribute a) |
void | setGradient (Attribute a) |
Attribute | opacity () const |
Attribute | strokeOpacity () const |
Attribute | tiling () const |
Attribute | gradient () const |
TPathMode | pathMode () const |
Attribute | stroke () const |
Attribute | fill () const |
Attribute | pen () const |
Attribute | dashStyle () const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
virtual void | saveAsXml (Stream &stream, String layer) const override |
virtual void | draw (Painter &painter) const override |
virtual void | drawSimple (Painter &painter) const override |
virtual void | accept (Visitor &visitor) const override |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const override |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const override |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override |
virtual void | snapCtl (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override |
virtual void | checkStyle (const Cascade *sheet, AttributeSeq &seq) const override |
virtual void | setMatrix (const Matrix &matrix) override |
virtual bool | setAttribute (Property prop, Attribute value) override |
virtual Attribute | getAttribute (Property prop) const noexcept override |
bool | arrow () const |
bool | rArrow () const |
Attribute | arrowShape () const |
Attribute | rArrowShape () const |
Attribute | arrowSize () const |
Attribute | rArrowSize () const |
void | setArrow (bool arrow, Attribute shape, Attribute size) |
void | setRarrow (bool arrow, Attribute shape, Attribute size) |
const Shape & | shape () const |
void | setShape (const Shape &shape) |
Public Member Functions inherited from ipe::Object | |
virtual | ~Object ()=0 |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Text * | asText () |
virtual Image * | asImage () |
virtual Reference * | asReference () |
virtual TPinned | pinned () const |
void | setPinned (TPinned pin) |
TTransformations | transformations () const |
void | setTransformations (TTransformations trans) |
const Matrix & | matrix () const |
-Static Public Member Functions | |
static Path * | create (const XmlAttributes &attr, String data) |
static void | drawArrow (Painter &painter, Vector pos, Angle alpha, Attribute shape, Attribute size, double radius) |
-Additional Inherited Members | |
Public Types inherited from ipe::Object | |
enum | Type { - EGroup, -EPath, -EText, -EImage, - - EReference - - } |
Protected Member Functions inherited from ipe::Object | |
Object () | |
Object (const AllAttributes &attr) | |
Object (const Object &rhs) | |
Object (const XmlAttributes &attr) | |
void | saveAttributesAsXml (Stream &stream, String layer) const |
Static Protected Member Functions inherited from ipe::Object | |
static void | checkSymbol (Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) |
Protected Attributes inherited from ipe::Object | |
Matrix | iMatrix |
TPinned | iPinned: 8 |
TTransformations | iTransformations: 8 |
The path object (polylines, polygons, and generalizations).
-This object represents any vector graphics. The geometry is contained in a Shape.
-The filling algorithm is the even-odd rule of PDF: To determine whether a point lies inside the filled shape, draw a ray from that point in any direction, and count the number of path segments that cross the ray. If this number is odd, the point is inside; if even, the point is outside. (Path objects can also render using the winding fill rule by setting the fillRule attribute. This isn't really supported by the Ipe user interface, which doesn't show the orientation of paths.)
-If the path consists of a single line segment and is filled only, then it is not drawn at all. This can be used to draw arrow heads without bodies. The fill color is used to draw the arrows in this case.
-
-
|
- -explicit | -
-
|
- -static | -
Construct from XML data.
- -
-
|
- -overridevirtual | -
Return a clone (constant-time).
- -Implements ipe::Object.
- -References ipe::SubPath::asCurve(), ipe::SubPath::closed(), ipe::CurveSegment::countCP(), ipe::Curve::countSegments(), ipe::Shape::countSubPaths(), ipe::CurveSegment::cp(), ipe::CurveSegment::EArc, ipe::CurveSegment::ESegment, ipe::Matrix::inverse(), ipe::CurveSegment::last(), ipe::Matrix::linear(), ipe::CurveSegment::matrix(), ipe::Object::matrix(), Path(), ipe::Curve::segment(), ipe::Shape::subPath(), and ipe::CurveSegment::type().
- -
-
|
- -overridevirtual | -
Return pointer to this object.
- -Reimplemented from ipe::Object.
- -
-
|
- -overridevirtual | -
Implements ipe::Object.
- -References ipe::Object::EPath.
- -void Path::setPathMode | -( | -TPathMode | -pm | ) | -- |
Set whether object will be stroked and filled.
- -Referenced by setAttribute().
- -void Path::setStroke | -( | -Attribute | -stroke | ) | -- |
void Path::setFill | -( | -Attribute | -fill | ) | -- |
void Path::setPen | -( | -Attribute | -pen | ) | -- |
void Path::setDashStyle | -( | -Attribute | -dash | ) | -- |
Set dash style.
- -Referenced by setAttribute().
- -void Path::setLineCap | -( | -TLineCap | -s | ) | -- |
Set line cap style.
- -void Path::setLineJoin | -( | -TLineJoin | -s | ) | -- |
Set line join style.
- -void Path::setFillRule | -( | -TFillRule | -s | ) | -- |
Set fill rule.
- -void Path::setOpacity | -( | -Attribute | -opaq | ) | -- |
Set opacity of the object.
- -Referenced by setAttribute().
- -void Path::setStrokeOpacity | -( | -Attribute | -opaq | ) | -- |
Set stroke opacity of the object.
- -Referenced by setAttribute().
- -void Path::setTiling | -( | -Attribute | -til | ) | -- |
Set tiling pattern of the object.
-Resets gradient fill.
- -References ipe::Attribute::NORMAL().
- -Referenced by setAttribute().
- -void Path::setGradient | -( | -Attribute | -grad | ) | -- |
Set gradient fill of the object.
-Resets tiling pattern.
- -References ipe::Attribute::NORMAL().
- -Referenced by setAttribute().
- -
-
|
- -inline | -
Return opacity of the opject.
- -Referenced by getAttribute(), and setAttribute().
- -
-
|
- -inline | -
Return stroke opacity of the opject.
- -Referenced by getAttribute(), and setAttribute().
- -
-
|
- -inline | -
Return tiling pattern.
- -Referenced by getAttribute(), and setAttribute().
- -
-
|
- -inline | -
Return gradient fill.
- -References accept(), addToBBox(), arrow(), arrowShape(), arrowSize(), checkStyle(), dashStyle(), distance(), draw(), drawArrow(), drawSimple(), fill(), fillRule(), getAttribute(), lineCap(), lineJoin(), ipe::Object::matrix(), pathMode(), pen(), rArrow(), rArrowShape(), rArrowSize(), saveAsXml(), setArrow(), setAttribute(), setMatrix(), setRarrow(), ipe::size(), snapBnd(), snapCtl(), snapVtx(), and stroke().
- -Referenced by getAttribute(), and setAttribute().
- -
-
|
- -inline | -
Is the object stroked and filled?
- -Referenced by gradient(), and setAttribute().
- -
-
|
- -inline | -
Return stroke color.
- -Referenced by getAttribute(), gradient(), setAttribute(), and setStroke().
- -
-
|
- -inline | -
Return object fill color.
- -Referenced by getAttribute(), gradient(), setAttribute(), and setFill().
- -
-
|
- -inline | -
Return object pen.
- -Referenced by getAttribute(), gradient(), setAttribute(), and setPen().
- -
-
|
- -inline | -
Return object line style.
- -Referenced by getAttribute(), gradient(), and setAttribute().
- -
-
|
- -inline | -
Return line cap style.
- -Referenced by draw(), and gradient().
- -
-
|
- -inline | -
Return line join style.
- -Referenced by draw(), and gradient().
- -
-
|
- -inline | -
Return fill rule.
- -Referenced by draw(), and gradient().
- -
-
|
- -overridevirtual | -
Save the object in XML format.
- -Implements ipe::Object.
- -References ipe::EDefaultCap, ipe::EDefaultJoin, ipe::EEvenOddRule, ipe::EStrokedAndFilled, ipe::EWindRule, ipe::Attribute::isNormal(), ipe::Attribute::OPAQUE(), ipe::Shape::save(), ipe::Object::saveAttributesAsXml(), ipe::String::size(), ipe::Attribute::string(), and ipe::String::substr().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Draw the object.
- -Implements ipe::Object.
- -References ipe::SubPath::asCurve(), ipe::Shape::draw(), drawArrow(), ipe::Painter::drawPath(), ipe::EFilledOnly, ipe::EStrokedAndFilled, ipe::EStrokedOnly, fillRule(), ipe::IPE_PI, ipe::Attribute::isArcArrow(), ipe::Attribute::isNormal(), ipe::Shape::isSegment(), ipe::Matrix::linear(), lineCap(), lineJoin(), ipe::CurveSegment::matrix(), ipe::Object::matrix(), ipe::Painter::matrix(), ipe::Painter::newPath(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Curve::segment(), ipe::Painter::setDashStyle(), ipe::Painter::setFill(), ipe::Painter::setFillRule(), ipe::Painter::setGradient(), ipe::Painter::setLineCap(), ipe::Painter::setLineJoin(), ipe::Painter::setOpacity(), ipe::Painter::setPen(), ipe::Painter::setStroke(), ipe::Painter::setStrokeOpacity(), ipe::Painter::setTiling(), ipe::Shape::subPath(), ipe::Painter::transform(), ipe::Object::transformations(), ipe::Matrix::translation(), and ipe::Painter::untransform().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Draw simple version for selecting and transforming.
- -Implements ipe::Object.
- -References ipe::Shape::draw(), ipe::Painter::drawPath(), ipe::EStrokedOnly, ipe::Object::matrix(), ipe::Painter::newPath(), ipe::Painter::popMatrix(), ipe::Painter::pushMatrix(), ipe::Painter::transform(), ipe::Object::transformations(), and ipe::Painter::untransform().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Call visitPath of visitor.
- -Implements ipe::Object.
- -References ipe::Visitor::visitPath().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Extend box to include the object transformed by m.
-For objects in a page, don't call this directly. The Page caches the bounding box of each object, so it is far more efficient to call Page::bbox.
-Control points that lie outside the visual object are included if cp is true.
-If called with an empty box and cp == false
, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
Implements ipe::Object.
- -References ipe::Shape::addToBBox(), and ipe::Object::matrix().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Return distance of transformed object to point v. If larger than bound, can just return bound.
- -Implements ipe::Object.
- -References ipe::Shape::distance(), and ipe::Object::matrix().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Compute vertex snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References ipe::Object::matrix(), and ipe::Shape::snapVtx().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Compute control point snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References ipe::Object::matrix(), and ipe::Shape::snapVtx().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Compute boundary snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References ipe::Object::matrix(), and ipe::Shape::snapBnd().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Check all symbolic attributes.
- -Reimplemented from ipe::Object.
- -References ipe::Object::checkSymbol(), ipe::EArrowSize, ipe::EColor, ipe::EDashStyle, ipe::EGradient, ipe::EOpacity, ipe::EPen, ipe::ESymbol, ipe::ETiling, and ipe::Attribute::isNormal().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Set the transformation matrix.
-Don't use this on an Object in a Page, because it wouldn't invalidate its bounding box. Call Page::transform instead.
- -Reimplemented from ipe::Object.
- -References ipe::Object::setMatrix().
- -Referenced by gradient().
- -
-
|
- -overridevirtual | -
Set an attribute on this object.
-Returns true if an attribute was actually changed.
- -Reimplemented from ipe::Object.
- -References ipe::Attribute::boolean(), dashStyle(), ipe::EPropDashStyle, ipe::EPropFArrow, ipe::EPropFArrowShape, ipe::EPropFArrowSize, ipe::EPropFillColor, ipe::EPropFillRule, ipe::EPropGradient, ipe::EPropLineCap, ipe::EPropLineJoin, ipe::EPropOpacity, ipe::EPropPathMode, ipe::EPropPen, ipe::EPropRArrow, ipe::EPropRArrowShape, ipe::EPropRArrowSize, ipe::EPropStrokeColor, ipe::EPropStrokeOpacity, ipe::EPropTiling, fill(), ipe::Attribute::fillRule(), gradient(), ipe::Attribute::isEnum(), ipe::Attribute::isMidArrow(), ipe::Attribute::lineCap(), ipe::Attribute::lineJoin(), opacity(), pathMode(), ipe::Attribute::pathMode(), pen(), ipe::Object::setAttribute(), setDashStyle(), setFill(), setGradient(), setOpacity(), setPathMode(), setPen(), setStroke(), setStrokeOpacity(), setTiling(), stroke(), strokeOpacity(), and tiling().
- -Referenced by gradient().
- -
-
|
- -overridevirtualnoexcept | -
Get setting of an attribute of this object.
-If object does not have this attribute, returnes "undefined" attribute.
- -Reimplemented from ipe::Object.
- -References ipe::Attribute::Boolean(), dashStyle(), ipe::EPropDashStyle, ipe::EPropFArrow, ipe::EPropFArrowShape, ipe::EPropFArrowSize, ipe::EPropFillColor, ipe::EPropFillRule, ipe::EPropGradient, ipe::EPropLineCap, ipe::EPropLineJoin, ipe::EPropOpacity, ipe::EPropPathMode, ipe::EPropPen, ipe::EPropRArrow, ipe::EPropRArrowShape, ipe::EPropRArrowSize, ipe::EPropStrokeColor, ipe::EPropStrokeOpacity, ipe::EPropTiling, fill(), ipe::Object::getAttribute(), gradient(), opacity(), pen(), stroke(), strokeOpacity(), and tiling().
- -Referenced by gradient().
- -
-
|
- -inline | -
Does object have an arrow?
- -Referenced by gradient(), setArrow(), and setRarrow().
- -
-
|
- -inline | -
Does object have a reverse arrow?
- -Referenced by gradient().
- -
-
|
- -inline | -
Return shape of arrow.
- -Referenced by gradient().
- -
-
|
- -inline | -
Return shape of reverse arrow.
- -Referenced by gradient().
- -
-
|
- -inline | -
Return size of arrow.
- -Referenced by gradient().
- -
-
|
- -inline | -
Return size of reverse arrow.
- -Referenced by gradient().
- -void Path::setArrow | -( | -bool | -arrow, | -
- | - | Attribute | -shape, | -
- | - | Attribute | -size | -
- | ) | -- |
Set forward arrow.
- -References arrow(), ipe::Attribute::isMidArrow(), shape(), and ipe::size().
- -Referenced by gradient().
- -void Path::setRarrow | -( | -bool | -arrow, | -
- | - | Attribute | -shape, | -
- | - | Attribute | -size | -
- | ) | -- |
Set backward arrow (if the object can take it).
- -References arrow(), ipe::Attribute::isMidArrow(), shape(), and ipe::size().
- -Referenced by gradient().
- -
-
|
- -static | -
Draw an arrow of size with tip at pos directed in direction angle.
- -References ipe::Attribute::ARROW_FARC(), ipe::Attribute::ARROW_FPTARC(), ipe::Attribute::ARROW_PTARC(), ipe::Arc::beginp(), ipe::Painter::cascade(), ipe::Painter::closePath(), ipe::Object::draw(), ipe::Painter::drawArc(), ipe::Painter::drawPath(), ipe::EArrowSize, ipe::Arc::endp(), ipe::EStrokedAndFilled, ipe::ETransformationsRigidMotions, ipe::Cascade::find(), ipe::Cascade::findSymbol(), ipe::Symbol::iObject, ipe::Attribute::isArcArrow(), ipe::Painter::lineTo(), ipe::Painter::moveTo(), ipe::Painter::newPath(), ipe::Attribute::number(), ipe::Painter::pen(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Painter::setFill(), ipe::Painter::setStroke(), ipe::Painter::setSymFill(), ipe::Painter::setSymPen(), ipe::Painter::setSymStroke(), ipe::Painter::stroke(), ipe::Fixed::toDouble(), ipe::Painter::transform(), ipe::Painter::translate(), and ipe::Painter::untransform().
- -Referenced by draw(), and gradient().
- -
-
|
- -inline | -
Return shape of the path object.
- -References Path(), and setShape().
- -Referenced by setArrow(), setRarrow(), and setShape().
- -void Path::setShape | -( | -const Shape & | -shape | ) | -- |
- Ipelib
-
- |
-
This is the complete list of members for ipe::Path, including all inherited members.
-accept(Visitor &visitor) const override | ipe::Path | virtual |
addToBBox(Rect &box, const Matrix &m, bool cp) const override | ipe::Path | virtual |
arrow() const | ipe::Path | inline |
arrowShape() const | ipe::Path | inline |
arrowSize() const | ipe::Path | inline |
asGroup() | ipe::Object | virtual |
asGroup() const | ipe::Object | virtual |
asImage() | ipe::Object | virtual |
asPath() override | ipe::Path | virtual |
asReference() | ipe::Object | virtual |
asText() | ipe::Object | virtual |
checkStyle(const Cascade *sheet, AttributeSeq &seq) const override | ipe::Path | virtual |
checkSymbol(Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) | ipe::Object | protectedstatic |
clone() const override | ipe::Path | virtual |
create(const XmlAttributes &attr, String data) | ipe::Path | static |
dashStyle() const | ipe::Path | inline |
distance(const Vector &v, const Matrix &m, double bound) const override | ipe::Path | virtual |
draw(Painter &painter) const override | ipe::Path | virtual |
drawArrow(Painter &painter, Vector pos, Angle alpha, Attribute shape, Attribute size, double radius) | ipe::Path | static |
drawSimple(Painter &painter) const override | ipe::Path | virtual |
EGroup enum value | ipe::Object | |
EImage enum value | ipe::Object | |
EPath enum value | ipe::Object | |
EReference enum value | ipe::Object | |
EText enum value | ipe::Object | |
fill() const | ipe::Path | inline |
fillRule() const | ipe::Path | inline |
getAttribute(Property prop) const noexcept override | ipe::Path | virtual |
gradient() const | ipe::Path | inline |
iMatrix | ipe::Object | protected |
iPinned | ipe::Object | protected |
iTransformations | ipe::Object | protected |
lineCap() const | ipe::Path | inline |
lineJoin() const | ipe::Path | inline |
matrix() const | ipe::Object | inline |
Object() | ipe::Object | explicitprotected |
Object(const AllAttributes &attr) | ipe::Object | explicitprotected |
Object(const Object &rhs) | ipe::Object | protected |
Object(const XmlAttributes &attr) | ipe::Object | explicitprotected |
opacity() const | ipe::Path | inline |
Path(const AllAttributes &attr, const Shape &shape, bool withArrows=false) | ipe::Path | explicit |
pathMode() const | ipe::Path | inline |
pen() const | ipe::Path | inline |
pinned() const | ipe::Object | virtual |
rArrow() const | ipe::Path | inline |
rArrowShape() const | ipe::Path | inline |
rArrowSize() const | ipe::Path | inline |
saveAsXml(Stream &stream, String layer) const override | ipe::Path | virtual |
saveAttributesAsXml(Stream &stream, String layer) const | ipe::Object | protected |
setArrow(bool arrow, Attribute shape, Attribute size) | ipe::Path | |
setAttribute(Property prop, Attribute value) override | ipe::Path | virtual |
setDashStyle(Attribute dash) | ipe::Path | |
setFill(Attribute fill) | ipe::Path | |
setFillRule(TFillRule s) | ipe::Path | |
setGradient(Attribute a) | ipe::Path | |
setLineCap(TLineCap s) | ipe::Path | |
setLineJoin(TLineJoin s) | ipe::Path | |
setMatrix(const Matrix &matrix) override | ipe::Path | virtual |
setOpacity(Attribute opaq) | ipe::Path | |
setPathMode(TPathMode pm) | ipe::Path | |
setPen(Attribute pen) | ipe::Path | |
setPinned(TPinned pin) | ipe::Object | |
setRarrow(bool arrow, Attribute shape, Attribute size) | ipe::Path | |
setShape(const Shape &shape) | ipe::Path | |
setStroke(Attribute stroke) | ipe::Path | |
setStrokeOpacity(Attribute opaq) | ipe::Path | |
setTiling(Attribute a) | ipe::Path | |
setTransformations(TTransformations trans) | ipe::Object | |
shape() const | ipe::Path | inline |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override | ipe::Path | virtual |
snapCtl(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override | ipe::Path | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const override | ipe::Path | virtual |
stroke() const | ipe::Path | inline |
strokeOpacity() const | ipe::Path | inline |
tiling() const | ipe::Path | inline |
transformations() const | ipe::Object | inline |
type() const override | ipe::Path | virtual |
Type enum name | ipe::Object | |
~Object()=0 | ipe::Object | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfArray () | |
~PdfArray () | |
virtual const PdfArray * | array () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
void | append (const PdfObj *) |
int | count () const noexcept |
const PdfObj * | obj (int index, const PdfFile *file) const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF array object.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::array(), and ipe::PdfObj::write().
- -PdfArray::~PdfArray | -( | -) | -- |
-
|
- -virtualnoexcept | -
Return this object as PDF array object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -void PdfArray::append | -( | -const PdfObj * | -obj | ) | -- |
Append an object to array.
-Array takes ownership of the object.
- -Referenced by ipe::PdfResources::collect().
- -
-
|
- -inlinenoexcept | -
-
|
- -noexcept | -
Return object with index in array.
-Indirect objects (references) are looked up if file is not nullptr, and the object referred to is returned (nullptr if it does not exist). Object remains owned by array.
- -References ipe::PdfObj::ref(), and ipe::PdfRef::value().
- -Referenced by ipe::PdfFile::catalog(), ipe::PdfResources::collect(), ipe::Face::Face(), ipe::PdfDict::getNumberArray(), ipe::PdfParser::getTrailer(), ipe::Face::glyphIndex(), ipe::Latex::readPdf(), and ipe::PdfResources::setIpeXForm().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfArray, including all inherited members.
-append(const PdfObj *) | ipe::PdfArray | |
array() const noexcept | ipe::PdfArray | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
count() const noexcept | ipe::PdfArray | inline |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
obj(int index, const PdfFile *file) const noexcept | ipe::PdfArray | |
PdfArray() | ipe::PdfArray | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfArray | virtual |
~PdfArray() | ipe::PdfArray | |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfBool (bool val) | |
virtual const PdfBool * | boolean () const noexcept |
bool | value () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF bool object.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::boolean().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF bool object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -inlinenoexcept | -
References ipe::PdfObj::write().
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfBool, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfBool | virtual |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
PdfBool(bool val) | ipe::PdfBool | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
value() const noexcept | ipe::PdfBool | inline |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfBool | virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfDict () | |
~PdfDict () | |
virtual const PdfDict * | dict () const noexcept |
String | dictRepr () const noexcept |
void | dictWrite (Stream &stream, const PdfRenumber *renumber, bool inflate, int length) const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
void | setStream (const Buffer &stream) |
void | add (String key, const PdfObj *obj) |
const PdfObj * | get (String key, const PdfFile *file=nullptr) const noexcept |
const PdfDict * | getDict (String key, const PdfFile *file=nullptr) const noexcept |
const PdfArray * | getArray (String key, const PdfFile *file=nullptr) const noexcept |
String | getName (String key, const PdfFile *file=nullptr) const noexcept |
bool | getNumber (String key, double &val, const PdfFile *file=nullptr) const noexcept |
int | getInteger (String key, const PdfFile *file=nullptr) const noexcept |
bool | getNumberArray (String key, const PdfFile *file, std::vector< double > &vals) const noexcept |
int | count () const noexcept |
String | key (int index) const noexcept |
const PdfObj * | value (int index) const noexcept |
Buffer | stream () const noexcept |
bool | deflated () const noexcept |
Buffer | inflate () const noexcept |
void | setLateStream (int pos) noexcept |
int | lateStream () const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
String | repr () const noexcept |
The PDF dictionary and stream objects.
-A dictionary may or may not have attached stream data.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::dict(), and ipe::PdfObj::write().
- -PdfDict::~PdfDict | -( | -) | -- |
-
|
- -virtualnoexcept | -
Return this object as PDF dictionary object.
- -Reimplemented from ipe::PdfObj.
- -Referenced by ipe::PdfParser::getTrailer().
- -
-
|
- -noexcept | -
Return PDF representation of the PdfDict without the stream.
- -
-
|
- -noexcept | -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -References ipe::Buffer::size().
- -void PdfDict::setStream | -( | -const Buffer & | -stream | ) | -- |
Add stream data to this dictionary.
- -Referenced by ipe::PdfParser::getTrailer().
- -Add a (key, value) pair to the dictionary.
-Dictionary takes ownership of obj.
- -Referenced by ipe::PdfResources::collect().
- -
-
|
- -noexcept | -
Look up key in dictionary.
-Indirect objects (references) are looked up if file is not nullptr, and the object referred to is returned. Returns nullptr if key is not in dictionary.
- -Referenced by ipe::PdfResources::collect(), ipe::Latex::createLatexSource(), ipe::CairoPainter::executeStream(), ipe::Document::formatFromFilename(), ipe::PdfParser::getTrailer(), ipe::Latex::readPdf(), ipe::PdfThumbnail::render(), and ipe::PdfViewBase::setPage().
- -
-
|
- -noexcept | -
Look up key and return if it is a dictionary.
- -References ipe::PdfObj::dict().
- -
-
|
- -noexcept | -
Look up key and return if it is an array.
- -References ipe::PdfObj::array().
- -Referenced by ipe::PdfFile::catalog().
- -
-
|
- -noexcept | -
Look up key and return its value if it is a /Name, otherwise return empty string.
- -References ipe::PdfObj::name(), and ipe::PdfName::value().
- -Referenced by ipe::PdfFile::catalog().
- -
-
|
- -noexcept | -
Retrieve a single number and stor in val.
- -References ipe::PdfObj::number(), and ipe::PdfNumber::value().
- -Referenced by ipe::Latex::createLatexSource(), and ipe::CairoPainter::executeStream().
- -
-
|
- -noexcept | -
Retrieve a single integer.
-Returns -1 on failure.
- -Referenced by ipe::Latex::createLatexSource(), ipe::CairoPainter::executeStream(), and ipe::PdfParser::getTrailer().
- -
-
|
- -noexcept | -
Retrieve an array of numbers and store in vals.
- -References ipe::PdfObj::array(), ipe::PdfArray::count(), ipe::PdfObj::number(), ipe::PdfArray::obj(), and ipe::PdfNumber::value().
- -Referenced by ipe::Latex::createLatexSource(), ipe::CairoPainter::executeStream(), ipe::PdfFile::mediaBox(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inlinenoexcept | -
-
|
- -inlinenoexcept | -
-
|
- -inlinenoexcept | -
-
|
- -inlinenoexcept | -
Referenced by ipe::Document::formatFromFilename(), ipe::Face::glyphIndex(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -noexcept | -
Is this stream compressed with flate compression?
- -References ipe::PdfObj::name(), and ipe::PdfName::value().
- -Referenced by ipe::Document::formatFromFilename(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -noexcept | -
Return the (uncompressed) stream data.
-This only handles the /Flate compression.
- -References ipe::String::data(), ipe::InflateSource::getChar(), ipe::PdfParser::PdfParser(), and ipe::String::size().
- -Referenced by ipe::CairoPainter::executeStream(), ipe::PdfParser::getTrailer(), ipe::Face::glyphIndex(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inlinenoexcept | -
Referenced by ipe::PdfParser::getTrailer().
- -
-
|
- -inlinenoexcept | -
Referenced by ipe::PdfParser::getObjectDef(), and ipe::PdfParser::getTrailer().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfDict, including all inherited members.
-add(String key, const PdfObj *obj) | ipe::PdfDict | |
array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
count() const noexcept | ipe::PdfDict | inline |
deflated() const noexcept | ipe::PdfDict | |
dict() const noexcept | ipe::PdfDict | virtual |
dictRepr() const noexcept | ipe::PdfDict | |
dictWrite(Stream &stream, const PdfRenumber *renumber, bool inflate, int length) const noexcept | ipe::PdfDict | |
get(String key, const PdfFile *file=nullptr) const noexcept | ipe::PdfDict | |
getArray(String key, const PdfFile *file=nullptr) const noexcept | ipe::PdfDict | |
getDict(String key, const PdfFile *file=nullptr) const noexcept | ipe::PdfDict | |
getInteger(String key, const PdfFile *file=nullptr) const noexcept | ipe::PdfDict | |
getName(String key, const PdfFile *file=nullptr) const noexcept | ipe::PdfDict | |
getNumber(String key, double &val, const PdfFile *file=nullptr) const noexcept | ipe::PdfDict | |
getNumberArray(String key, const PdfFile *file, std::vector< double > &vals) const noexcept | ipe::PdfDict | |
inflate() const noexcept | ipe::PdfDict | |
key(int index) const noexcept | ipe::PdfDict | inline |
lateStream() const noexcept | ipe::PdfDict | inline |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
PdfDict() | ipe::PdfDict | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
setLateStream(int pos) noexcept | ipe::PdfDict | inline |
setStream(const Buffer &stream) | ipe::PdfDict | |
stream() const noexcept | ipe::PdfDict | inline |
string() const noexcept | ipe::PdfObj | virtual |
value(int index) const noexcept | ipe::PdfDict | inline |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfDict | virtual |
~PdfDict() | ipe::PdfDict | |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
-Public Member Functions | |
bool | parse (DataSource &source) |
const PdfObj * | object (int num) const noexcept |
const PdfDict * | catalog () const noexcept |
const PdfDict * | page (int pno=0) const noexcept |
std::unique_ptr< const PdfObj > | take (int num) |
int | countPages () const |
Rect | mediaBox (const PdfDict *page) const |
int | findPageFromPageObjectNumber (int objNum) const |
All information obtained by parsing a PDF file.
-bool PdfFile::parse | -( | -DataSource & | -source | ) | -- |
Parse entire PDF stream, and store objects.
- -Referenced by ipe::Document::formatFromFilename(), and ipe::PdfParser::getTrailer().
- -
-
|
- -noexcept | -
Return object with number num.
- -Referenced by ipe::Document::formatFromFilename(), and ipe::PdfFileResources::object().
- -
-
|
- -noexcept | -
Return root catalog of PDF file.
- -References ipe::PdfArray::count(), ipe::PdfObj::dict(), ipe::PdfDict::getArray(), ipe::PdfDict::getName(), ipe::PdfArray::obj(), ipe::PdfObj::ref(), and ipe::PdfRef::value().
- -Referenced by ipe::Document::formatFromFilename().
- -
-
|
- -noexcept | -
Return a page of the document.
- -std::unique_ptr< const PdfObj > PdfFile::take | -( | -int | -num | ) | -- |
Take ownership of object with number num, remove from PdfFile.
- -Referenced by ipe::PdfResources::setIpeXForm().
- -
-
|
- -inline | -
Return number of pages.
- -Return mediabox of a page.
- -References ipe::Rect::addPoint(), and ipe::PdfDict::getNumberArray().
- -int PdfFile::findPageFromPageObjectNumber | -( | -int | -objNum | ) | -const | -
Return page number given the PDF object number.
-Returns -1 if the object number is not a page.
- -References ipe::size().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfFile, including all inherited members.
-catalog() const noexcept | ipe::PdfFile | |
countPages() const | ipe::PdfFile | inline |
findPageFromPageObjectNumber(int objNum) const | ipe::PdfFile | |
mediaBox(const PdfDict *page) const | ipe::PdfFile | |
object(int num) const noexcept | ipe::PdfFile | |
page(int pno=0) const noexcept | ipe::PdfFile | |
parse(DataSource &source) | ipe::PdfFile | |
take(int num) | ipe::PdfFile |
- Ipelib
-
- |
-
#include <iperesources.h>
Inherits ipe::PdfResourceBase.
--Public Member Functions | |
PdfFileResources (const PdfFile *file) | |
~PdfFileResources ()=default | |
virtual const PdfObj * | object (int num) const noexcept |
Public Member Functions inherited from ipe::PdfResourceBase | |
PdfResourceBase () | |
virtual | ~PdfResourceBase () |
const PdfObj * | getDeep (const PdfDict *d, String key) const noexcept |
const PdfDict * | getDict (const PdfDict *d, String key) const noexcept |
const PdfDict * | resourcesOfKind (String kind) const noexcept |
const PdfDict * | findResource (String kind, String name) const noexcept |
const PdfDict * | findResource (const PdfDict *xf, String kind, String name) const noexcept |
-Additional Inherited Members | |
Protected Attributes inherited from ipe::PdfResourceBase | |
std::unique_ptr< PdfDict > | iPageResources |
PdfFileResources::PdfFileResources | -( | -const PdfFile * | -file | ) | -- |
-
|
- -default | -
-
|
- -virtualnoexcept | -
Implements ipe::PdfResourceBase.
- -References ipe::PdfFile::object().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfFileResources, including all inherited members.
-findResource(String kind, String name) const noexcept | ipe::PdfResourceBase | |
findResource(const PdfDict *xf, String kind, String name) const noexcept | ipe::PdfResourceBase | |
getDeep(const PdfDict *d, String key) const noexcept | ipe::PdfResourceBase | |
getDict(const PdfDict *d, String key) const noexcept | ipe::PdfResourceBase | |
iPageResources | ipe::PdfResourceBase | protected |
object(int num) const noexcept | ipe::PdfFileResources | virtual |
PdfFileResources(const PdfFile *file) | ipe::PdfFileResources | |
PdfResourceBase() | ipe::PdfResourceBase | |
resourcesOfKind(String kind) const noexcept | ipe::PdfResourceBase | |
~PdfFileResources()=default | ipe::PdfFileResources | |
~PdfResourceBase() | ipe::PdfResourceBase | virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfName (const String &val) | |
virtual const PdfName * | name () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
String | value () const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF name object.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::name(), and ipe::PdfObj::write().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF name object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -
-
|
- -inlinenoexcept | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfName, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfName | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
PdfName(const String &val) | ipe::PdfName | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
value() const noexcept | ipe::PdfName | inline |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfName | virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfNull () | |
virtual const PdfNull * | null () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF null object.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::null(), and ipe::PdfObj::write().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF null object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfNull, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfNull | virtual |
number() const noexcept | ipe::PdfObj | virtual |
PdfNull() | ipe::PdfNull | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfNull | virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfNumber (double val) | |
virtual const PdfNumber * | number () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
double | value () const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF number object.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::number(), and ipe::PdfObj::write().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF number object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -
-
|
- -inlinenoexcept | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfNumber, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfNumber | virtual |
PdfNumber(double val) | ipe::PdfNumber | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
value() const noexcept | ipe::PdfNumber | inline |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfNumber | virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherited by ipe::PdfArray, ipe::PdfBool, ipe::PdfDict, ipe::PdfName, ipe::PdfNull, ipe::PdfNumber, ipe::PdfRef, and ipe::PdfString.
--Public Member Functions | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber=nullptr, bool inflate=false) const noexcept=0 |
String | repr () const noexcept |
Abstract base class for PDF objects.
-
-
|
- -pure virtual | -
Pure virtual destructor.
- -
-
|
- -virtualnoexcept | -
Return this object as PDF null object.
- -Reimplemented in ipe::PdfNull.
- -Referenced by ipe::PdfNull::PdfNull().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF bool object.
- -Reimplemented in ipe::PdfBool.
- -Referenced by ipe::PdfBool::PdfBool().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF number object.
- -Reimplemented in ipe::PdfNumber.
- -Referenced by ipe::PdfResources::collect(), ipe::CairoPainter::executeStream(), ipe::PdfDict::getNumber(), ipe::PdfDict::getNumberArray(), ipe::PdfParser::getToken(), ipe::PdfParser::getTrailer(), ipe::Face::glyphIndex(), and ipe::PdfNumber::PdfNumber().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF string object.
- -Reimplemented in ipe::PdfString.
- -Referenced by ipe::CairoPainter::executeStream(), and ipe::PdfString::PdfString().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF name object.
- -Reimplemented in ipe::PdfName.
- -Referenced by ipe::PdfResources::collect(), ipe::PdfDict::deflated(), ipe::CairoPainter::executeStream(), ipe::Face::Face(), ipe::Document::formatFromFilename(), ipe::PdfDict::getName(), ipe::PdfParser::getToken(), ipe::PdfParser::getTrailer(), ipe::Face::glyphIndex(), and ipe::PdfName::PdfName().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF reference object.
- -Reimplemented in ipe::PdfRef.
- -Referenced by ipe::PdfFile::catalog(), ipe::PdfResources::collect(), ipe::Latex::createLatexSource(), ipe::Face::Face(), ipe::PdfResourceBase::getDeep(), ipe::PdfParser::getToken(), ipe::PdfArray::obj(), ipe::PdfRef::PdfRef(), ipe::Latex::readPdf(), ipe::PdfResources::setIpeXForm(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF array object.
- -Reimplemented in ipe::PdfArray.
- -Referenced by ipe::PdfResources::collect(), ipe::Face::Face(), ipe::PdfDict::getArray(), ipe::PdfDict::getNumberArray(), ipe::PdfParser::getTrailer(), ipe::Face::glyphIndex(), ipe::PdfArray::PdfArray(), ipe::Latex::readPdf(), and ipe::PdfResources::setIpeXForm().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF dictionary object.
- -Reimplemented in ipe::PdfDict.
- -Referenced by ipe::PdfFile::catalog(), ipe::PdfResources::collect(), ipe::Latex::createLatexSource(), ipe::Face::Face(), ipe::Document::formatFromFilename(), ipe::PdfResourceBase::getDict(), ipe::PdfDict::getDict(), ipe::PdfParser::getObjectDef(), ipe::PdfParser::getToken(), ipe::Face::glyphIndex(), ipe::PdfDict::PdfDict(), ipe::Latex::readPdf(), ipe::PdfThumbnail::render(), ipe::PdfResourceBase::resourcesOfKind(), ipe::PdfResources::setIpeXForm(), ipe::PdfViewBase::setPage(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -pure virtualnoexcept | -
Implemented in ipe::PdfDict, ipe::PdfArray, ipe::PdfRef, ipe::PdfName, ipe::PdfString, ipe::PdfNumber, ipe::PdfBool, and ipe::PdfNull.
- -Referenced by ipe::PdfArray::PdfArray(), ipe::PdfDict::PdfDict(), ipe::PdfName::PdfName(), ipe::PdfNull::PdfNull(), ipe::PdfNumber::PdfNumber(), ipe::PdfRef::PdfRef(), ipe::PdfString::PdfString(), repr(), ipe::PdfBool::value(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -noexcept | -
Return PDF representation of the object.
- -References write().
- -Referenced by ipe::PdfResources::collect(), and ipe::CairoPainter::executeStream().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfObj, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
write(Stream &stream, const PdfRenumber *renumber=nullptr, bool inflate=false) const noexcept=0 | ipe::PdfObj | pure virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipepdfwriter.h>
Inherits ipe::Painter.
- -Inherited by ipe::PsPainter.
--Public Member Functions | |
PdfPainter (const Cascade *style, Stream &stream) | |
virtual | ~PdfPainter () |
Public Member Functions inherited from ipe::Painter | |
Painter (const Cascade *style) | |
virtual | ~Painter () |
void | setAttributeMap (const AttributeMap *map) |
Attribute | lookup (Kind kind, Attribute sym) const |
void | transform (const Matrix &m) |
void | untransform (TTransformations trans) |
void | translate (const Vector &v) |
void | push () |
void | pop () |
void | pushMatrix () |
void | popMatrix () |
void | newPath () |
void | moveTo (const Vector &v) |
void | lineTo (const Vector &v) |
void | curveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
void | curveTo (const Bezier &bezier) |
void | rect (const Rect &re) |
void | drawEllipse () |
void | drawArc (const Arc &arc) |
void | closePath () |
void | drawPath (TPathMode mode) |
void | drawBitmap (Bitmap bitmap) |
void | drawText (const Text *text) |
void | drawSymbol (Attribute symbol) |
void | addClipPath () |
void | setStroke (Attribute color) |
void | setFill (Attribute color) |
void | setPen (Attribute pen) |
void | setDashStyle (Attribute dash) |
void | setLineCap (TLineCap cap) |
void | setLineJoin (TLineJoin join) |
void | setFillRule (TFillRule rule) |
void | setSymStroke (Attribute color) |
void | setSymFill (Attribute color) |
void | setSymPen (Attribute wid) |
void | setOpacity (Attribute opaq) |
void | setStrokeOpacity (Attribute opaq) |
void | setTiling (Attribute til) |
void | setGradient (Attribute grad) |
const Cascade * | cascade () const |
Color | stroke () const |
Color | fill () const |
const Matrix & | matrix () const |
Fixed | pen () const |
String | dashStyle () const |
void | dashStyle (std::vector< double > &dashes, double &offset) const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
Color | symStroke () const |
Color | symFill () const |
Fixed | symPen () const |
Fixed | opacity () const |
Fixed | strokeOpacity () const |
Attribute | tiling () const |
Attribute | gradient () const |
const State & | state () const |
void | setState (const State &state) |
-Static Public Member Functions | |
static void | drawColor (Stream &stream, Color color, const char *gray, const char *rgb) |
-Protected Member Functions | |
virtual void | doPush () |
virtual void | doPop () |
virtual void | doNewPath () |
virtual void | doMoveTo (const Vector &v) |
virtual void | doLineTo (const Vector &v) |
virtual void | doCurveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
virtual void | doClosePath () |
virtual void | doDrawPath (TPathMode mode) |
virtual void | doDrawBitmap (Bitmap bitmap) |
virtual void | doDrawText (const Text *text) |
virtual void | doAddClipPath () |
virtual void | doDrawSymbol (Attribute symbol) |
void | drawAttributes () |
void | drawOpacity (bool withStroke) |
Protected Member Functions inherited from ipe::Painter | |
virtual void | doDrawArc (const Arc &arc) |
void | drawArcAsBezier (double alpha) |
-Protected Attributes | |
Stream & | iStream |
std::list< State > | iActiveState |
Protected Attributes inherited from ipe::Painter | |
std::list< State > | iState |
std::list< Matrix > | iMatrix |
const Cascade * | iCascade |
const AttributeMap * | iAttributeMap |
int | iInPath |
PdfPainter::PdfPainter | -( | -const Cascade * | -style, | -
- | - | Stream & | -stream | -
- | ) | -- |
References iActiveState, ipe::Painter::State::iDashStyle, ipe::Painter::State::iFill, ipe::Painter::State::iLineCap, ipe::Painter::State::iLineJoin, ipe::Painter::State::iOpacity, ipe::Painter::State::iPen, iStream, ipe::Painter::State::iStroke, ipe::Painter::State::iStrokeOpacity, ipe::Cascade::lineCap(), ipe::Cascade::lineJoin(), and ipe::Painter::state().
- -
-
|
- -inlinevirtual | -
References doAddClipPath(), doClosePath(), doCurveTo(), doDrawBitmap(), doDrawPath(), doDrawSymbol(), doDrawText(), doLineTo(), doMoveTo(), doNewPath(), doPop(), doPush(), drawAttributes(), drawColor(), and drawOpacity().
- -
-
|
- -static | -
References ipe::Color::iRed, and ipe::Color::isGray().
- -Referenced by drawAttributes(), and ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform graphics state push on output medium.
- -Reimplemented from ipe::Painter.
- -References iActiveState, iStream, and ipe::Painter::state().
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform graphics state pop on output medium.
- -Reimplemented from ipe::Painter.
- -References iActiveState, and iStream.
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform new path operator.
- -Reimplemented from ipe::Painter.
- -Reimplemented in ipe::PsPainter.
- -References drawAttributes().
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform moveto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References iStream.
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform lineto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References iStream.
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform curveto operator.
-The transformation matrix has already been applied.
- -Reimplemented from ipe::Painter.
- -References iStream.
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Perform closepath operator.
- -Reimplemented from ipe::Painter.
- -References iStream.
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Actually draw the path.
- -Reimplemented from ipe::Painter.
- -Reimplemented in ipe::PsPainter.
- -References ipe::EEvenOddRule, ipe::EFilledOnly, ipe::EStrokedOnly, ipe::Painter::fillRule(), ipe::Cascade::findGradient(), ipe::Painter::iCascade, ipe::Gradient::iMatrix, ipe::Attribute::index(), ipe::Attribute::isNormal(), ipe::Painter::iState, iStream, and ipe::Painter::matrix().
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Draw a bitmap.
- -Reimplemented from ipe::Painter.
- -Reimplemented in ipe::PsPainter.
- -References drawOpacity(), iStream, ipe::Painter::matrix(), and ipe::Bitmap::objNum().
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Draw a text object.
- -Reimplemented from ipe::Painter.
- -References drawOpacity(), ipe::Text::getXForm(), ipe::Text::XForm::iName, iStream, ipe::Text::XForm::iStretch, ipe::Text::XForm::iTranslation, ipe::Painter::matrix(), ipe::Painter::popMatrix(), ipe::Painter::pushMatrix(), ipe::Painter::transform(), and ipe::Painter::translate().
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Add a clip path.
- -Reimplemented from ipe::Painter.
- -Reimplemented in ipe::PsPainter.
- -References iStream.
- -Referenced by ~PdfPainter().
- -
-
|
- -protectedvirtual | -
Draw a symbol.
-The default implementation calls the draw method of the object. Only PDF drawing overrides this to reuse a PDF XForm.
- -Reimplemented from ipe::Painter.
- -References ipe::Object::accept(), ipe::Painter::cascade(), ipe::String::data(), ipe::Object::draw(), ipe::Gradient::EAxial, ipe::EGradient, ipe::EOpacity, ipe::ESymbol, ipe::ETiling, ipe::Cascade::findSymbol(), ipe::Tiling::iAngle, ipe::BitmapFinder::iBitmaps, ipe::Gradient::iExtend, ipe::Attribute::index(), ipe::Symbol::iObject, ipe::Gradient::iRadius, ipe::Attribute::isNumber(), ipe::Tiling::iStep, ipe::Gradient::iStops, iStream, ipe::Gradient::iType, ipe::Gradient::iV, ipe::Tiling::iWidth, ipe::Symbol::iXForm, ipe::Attribute::number(), ipe::PdfWriter::PdfWriter(), ipe::size(), ipe::String::size(), and ipe::Painter::tiling().
- -Referenced by ~PdfPainter().
- -
-
|
- -protected | -
References drawColor(), drawOpacity(), iActiveState, ipe::Painter::State::iDashStyle, ipe::Painter::State::iFill, ipe::Painter::State::iLineCap, ipe::Painter::State::iLineJoin, ipe::Attribute::index(), ipe::Fixed::internal(), ipe::Painter::State::iPen, ipe::Attribute::isNormal(), ipe::Painter::iState, iStream, ipe::Painter::State::iStroke, ipe::Painter::State::iTiling, and ipe::Color::saveRGB().
- -Referenced by doNewPath(), and ~PdfPainter().
- -
-
|
- -protected | -
References iActiveState, ipe::Painter::State::iOpacity, ipe::Painter::iState, iStream, and ipe::Painter::State::iStrokeOpacity.
- -Referenced by doDrawBitmap(), doDrawText(), drawAttributes(), and ~PdfPainter().
- -
-
|
- -protected | -
Referenced by ipe::PdfWriter::createBookmarks(), ipe::PdfWriter::createNamedDests(), ipe::PdfWriter::createPageView(), ipe::PdfWriter::createTrailer(), ipe::PdfWriter::createXmlStream(), doAddClipPath(), doClosePath(), doCurveTo(), doDrawBitmap(), doDrawPath(), doDrawSymbol(), doDrawText(), doLineTo(), doMoveTo(), doPop(), doPush(), drawAttributes(), drawOpacity(), PdfPainter(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -protected | -
Referenced by doPop(), doPush(), drawAttributes(), drawOpacity(), and PdfPainter().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfPainter, including all inherited members.
-addClipPath() | ipe::Painter | |
cascade() const | ipe::Painter | inline |
closePath() | ipe::Painter | |
curveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::Painter | |
curveTo(const Bezier &bezier) | ipe::Painter | inline |
dashStyle() const | ipe::Painter | inline |
dashStyle(std::vector< double > &dashes, double &offset) const | ipe::Painter | |
doAddClipPath() | ipe::PdfPainter | protectedvirtual |
doClosePath() | ipe::PdfPainter | protectedvirtual |
doCurveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::PdfPainter | protectedvirtual |
doDrawArc(const Arc &arc) | ipe::Painter | protectedvirtual |
doDrawBitmap(Bitmap bitmap) | ipe::PdfPainter | protectedvirtual |
doDrawPath(TPathMode mode) | ipe::PdfPainter | protectedvirtual |
doDrawSymbol(Attribute symbol) | ipe::PdfPainter | protectedvirtual |
doDrawText(const Text *text) | ipe::PdfPainter | protectedvirtual |
doLineTo(const Vector &v) | ipe::PdfPainter | protectedvirtual |
doMoveTo(const Vector &v) | ipe::PdfPainter | protectedvirtual |
doNewPath() | ipe::PdfPainter | protectedvirtual |
doPop() | ipe::PdfPainter | protectedvirtual |
doPush() | ipe::PdfPainter | protectedvirtual |
drawArc(const Arc &arc) | ipe::Painter | |
drawArcAsBezier(double alpha) | ipe::Painter | protected |
drawAttributes() | ipe::PdfPainter | protected |
drawBitmap(Bitmap bitmap) | ipe::Painter | |
drawColor(Stream &stream, Color color, const char *gray, const char *rgb) | ipe::PdfPainter | static |
drawEllipse() | ipe::Painter | |
drawOpacity(bool withStroke) | ipe::PdfPainter | protected |
drawPath(TPathMode mode) | ipe::Painter | |
drawSymbol(Attribute symbol) | ipe::Painter | |
drawText(const Text *text) | ipe::Painter | |
fill() const | ipe::Painter | inline |
fillRule() const | ipe::Painter | inline |
gradient() const | ipe::Painter | inline |
iActiveState | ipe::PdfPainter | protected |
iAttributeMap | ipe::Painter | protected |
iCascade | ipe::Painter | protected |
iInPath | ipe::Painter | protected |
iMatrix | ipe::Painter | protected |
iState | ipe::Painter | protected |
iStream | ipe::PdfPainter | protected |
lineCap() const | ipe::Painter | inline |
lineJoin() const | ipe::Painter | inline |
lineTo(const Vector &v) | ipe::Painter | |
lookup(Kind kind, Attribute sym) const | ipe::Painter | |
matrix() const | ipe::Painter | inline |
moveTo(const Vector &v) | ipe::Painter | |
newPath() | ipe::Painter | |
opacity() const | ipe::Painter | inline |
Painter(const Cascade *style) | ipe::Painter | |
PdfPainter(const Cascade *style, Stream &stream) | ipe::PdfPainter | |
pen() const | ipe::Painter | inline |
pop() | ipe::Painter | |
popMatrix() | ipe::Painter | |
push() | ipe::Painter | |
pushMatrix() | ipe::Painter | |
rect(const Rect &re) | ipe::Painter | |
setAttributeMap(const AttributeMap *map) | ipe::Painter | |
setDashStyle(Attribute dash) | ipe::Painter | |
setFill(Attribute color) | ipe::Painter | |
setFillRule(TFillRule rule) | ipe::Painter | |
setGradient(Attribute grad) | ipe::Painter | |
setLineCap(TLineCap cap) | ipe::Painter | |
setLineJoin(TLineJoin join) | ipe::Painter | |
setOpacity(Attribute opaq) | ipe::Painter | |
setPen(Attribute pen) | ipe::Painter | |
setState(const State &state) | ipe::Painter | |
setStroke(Attribute color) | ipe::Painter | |
setStrokeOpacity(Attribute opaq) | ipe::Painter | |
setSymFill(Attribute color) | ipe::Painter | |
setSymPen(Attribute wid) | ipe::Painter | |
setSymStroke(Attribute color) | ipe::Painter | |
setTiling(Attribute til) | ipe::Painter | |
state() const | ipe::Painter | inline |
stroke() const | ipe::Painter | inline |
strokeOpacity() const | ipe::Painter | inline |
symFill() const | ipe::Painter | inline |
symPen() const | ipe::Painter | inline |
symStroke() const | ipe::Painter | inline |
tiling() const | ipe::Painter | inline |
transform(const Matrix &m) | ipe::Painter | |
translate(const Vector &v) | ipe::Painter | |
untransform(TTransformations trans) | ipe::Painter | |
~Painter() | ipe::Painter | virtual |
~PdfPainter() | ipe::PdfPainter | inlinevirtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
-Public Member Functions | |
PdfParser (DataSource &source) | |
void | getChar () |
bool | eos () const noexcept |
PdfToken | token () const noexcept |
void | getToken () |
PdfObj * | getObject (bool lateStream=false) |
PdfObj * | getObjectDef (bool lateStream) |
PdfDict * | getTrailer () |
void | skipXRef () |
std::vector< int > | readXRef () |
PDF parser.
-The parser understands the syntax of PDF files, but very little of its semantics. It is meant to be able to parse PDF documents created by Ipe for loading, and to extract information from PDF files created by Pdflatex or Xelatex.
-The parser reads a PDF file sequentially from front to back, ignores the contents of 'xref' sections, stores only generation 0 objects, and stops after reading the first 'trailer' section (so it cannot deal with files with incremental updates). It cannot handle stream objects whose /Length entry has been deferred (using an indirect object).
-PdfParser::PdfParser | -( | -DataSource & | -source | ) | -- |
Construct with a data source.
- -Referenced by ipe::PdfDict::inflate().
- -
-
|
- -inline | -
Referenced by getTrailer().
- -
-
|
- -inlinenoexcept | -
Referenced by ipe::CairoPainter::executeStream().
- -
-
|
- -inlinenoexcept | -
Referenced by ipe::CairoPainter::executeStream(), and getTrailer().
- -void PdfParser::getToken | -( | -) | -- |
Read the next token from the input stream.
- -References ipe::PdfObj::dict(), ipe::PdfToken::EArrayBg, ipe::PdfToken::EArrayEnd, ipe::PdfToken::EDictBg, ipe::PdfToken::EDictEnd, ipe::PdfToken::EErr, ipe::PdfToken::EFalse, ipe::PdfToken::EName, ipe::PdfToken::ENull, ipe::PdfToken::ENumber, ipe::PdfToken::EOp, ipe::PdfToken::EString, ipe::PdfToken::EStringBinary, ipe::PdfToken::ETrue, ipe::PdfToken::iString, ipe::PdfObj::name(), ipe::PdfObj::number(), ipe::PdfObj::ref(), ipe::Platform::toDouble(), and ipe::PdfNumber::value().
- -Referenced by ipe::CairoPainter::executeStream(), and getTrailer().
- -PdfObj * PdfParser::getObject | -( | -bool | -lateStream = false | ) | -- |
Read one object from input stream.
- -References ipe::PdfToken::EArrayBg, ipe::PdfToken::EDictBg, ipe::PdfToken::EErr, ipe::PdfToken::EFalse, ipe::PdfToken::EName, ipe::PdfToken::ENull, ipe::PdfToken::ENumber, ipe::PdfToken::EString, ipe::PdfToken::EStringBinary, ipe::PdfToken::ETrue, ipe::PdfToken::iString, ipe::PdfToken::iType, ipe::String::substr(), and ipe::Platform::toDouble().
- -Referenced by ipe::CairoPainter::executeStream(), and getTrailer().
- -PdfObj * PdfParser::getObjectDef | -( | -bool | -lateStream | ) | -- |
Parse an object definition (current token is object number).
- -References ipe::PdfObj::dict(), ipe::PdfToken::ENumber, ipe::PdfToken::EOp, and ipe::PdfDict::lateStream().
- -Referenced by getTrailer().
- -PdfDict * PdfParser::getTrailer | -( | -) | -- |
Parse trailer dictionary (current token is 'trailer')
- -References ipe::PdfObj::array(), ipe::PdfArray::count(), ipe::Buffer::data(), ipe::PdfDict::dict(), ipe::PdfToken::EDictBg, ipe::PdfToken::ENumber, ipe::PdfToken::EOp, ipe::String::find(), ipe::PdfDict::get(), getChar(), ipe::DataSource::getChar(), ipe::Lex::getInt(), ipe::PdfDict::getInteger(), getObject(), getObjectDef(), getToken(), getTrailer(), ipe::PdfDict::inflate(), ipe::PdfToken::iString, ipe::PdfToken::iType, ipe::PdfDict::lateStream(), ipe::DataSource::length(), ipe::PdfObj::name(), ipe::PdfObj::number(), ipe::PdfArray::obj(), ipe::PdfFile::parse(), readXRef(), ipe::PdfDict::setLateStream(), ipe::DataSource::setPosition(), ipe::BufferSource::setPosition(), ipe::PdfDict::setStream(), ipe::size(), skipXRef(), ipe::String::substr(), token(), ipe::PdfNumber::value(), ipe::PdfName::value(), and ipe::String::z().
- -Referenced by getTrailer().
- -void PdfParser::skipXRef | -( | -) | -- |
Skip xref table (current token is 'xref')
- -Referenced by getTrailer().
- -std::vector< int > PdfParser::readXRef | -( | -) | -- |
Read xref table (current token is 'xref')
- -Referenced by getTrailer().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfParser, including all inherited members.
-eos() const noexcept | ipe::PdfParser | inline |
getChar() | ipe::PdfParser | inline |
getObject(bool lateStream=false) | ipe::PdfParser | |
getObjectDef(bool lateStream) | ipe::PdfParser | |
getToken() | ipe::PdfParser | |
getTrailer() | ipe::PdfParser | |
PdfParser(DataSource &source) | ipe::PdfParser | |
readXRef() | ipe::PdfParser | |
skipXRef() | ipe::PdfParser | |
token() const noexcept | ipe::PdfParser | inline |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfRef (int val) | |
virtual const PdfRef * | ref () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
int | value () const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfString * | string () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF reference object (indirect object).
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::ref(), and ipe::PdfObj::write().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF reference object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -
-
|
- -inlinenoexcept | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfRef, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
PdfRef(int val) | ipe::PdfRef | inlineexplicit |
ref() const noexcept | ipe::PdfRef | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfObj | virtual |
value() const noexcept | ipe::PdfRef | inline |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfRef | virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <iperesources.h>
Inherited by ipe::PdfFileResources, and ipe::PdfResources.
--Public Member Functions | |
PdfResourceBase () | |
virtual | ~PdfResourceBase () |
virtual const PdfObj * | object (int num) const noexcept=0 |
const PdfObj * | getDeep (const PdfDict *d, String key) const noexcept |
const PdfDict * | getDict (const PdfDict *d, String key) const noexcept |
const PdfDict * | resourcesOfKind (String kind) const noexcept |
const PdfDict * | findResource (String kind, String name) const noexcept |
const PdfDict * | findResource (const PdfDict *xf, String kind, String name) const noexcept |
-Protected Attributes | |
std::unique_ptr< PdfDict > | iPageResources |
Base class providing access to PDF objects.
-PdfResourceBase::PdfResourceBase | -( | -) | -- |
-
|
- -virtual | -
-
|
- -pure virtualnoexcept | -
Implemented in ipe::PdfResources, and ipe::PdfFileResources.
- -
-
|
- -noexcept | -
References ipe::PdfObj::ref(), and ipe::PdfRef::value().
- -Referenced by getDict().
- -
-
|
- -noexcept | -
References ipe::PdfObj::dict(), and getDeep().
- -Referenced by findResource().
- -
-
|
- -noexcept | -
References ipe::PdfObj::dict(), and iPageResources.
- -Referenced by findResource().
- -
-
|
- -noexcept | -
References getDict(), and resourcesOfKind().
- -Referenced by ipe::CairoPainter::executeStream().
- -
-
|
- -noexcept | -
References getDict().
- -
-
|
- -protected | -
Referenced by ipe::PdfResources::baseResources(), ipe::PdfResources::collect(), resourcesOfKind(), and ipe::PdfResources::show().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfResourceBase, including all inherited members.
-findResource(String kind, String name) const noexcept | ipe::PdfResourceBase | |
findResource(const PdfDict *xf, String kind, String name) const noexcept | ipe::PdfResourceBase | |
getDeep(const PdfDict *d, String key) const noexcept | ipe::PdfResourceBase | |
getDict(const PdfDict *d, String key) const noexcept | ipe::PdfResourceBase | |
iPageResources | ipe::PdfResourceBase | protected |
object(int num) const noexcept=0 | ipe::PdfResourceBase | pure virtual |
PdfResourceBase() | ipe::PdfResourceBase | |
resourcesOfKind(String kind) const noexcept | ipe::PdfResourceBase | |
~PdfResourceBase() | ipe::PdfResourceBase | virtual |
- Ipelib
-
- |
-
#include <iperesources.h>
Inherits ipe::PdfResourceBase.
--Classes | |
struct | SPageNumber |
-Public Member Functions | |
PdfResources () | |
virtual | ~PdfResources ()=default |
bool | collect (const PdfDict *resources, PdfFile *file) |
virtual const PdfObj * | object (int num) const noexcept |
virtual const PdfDict * | baseResources () const noexcept |
void | addPageNumber (SPageNumber &pn) noexcept |
const Text * | pageNumber (int page, int view) const noexcept |
const std::vector< int > & | embedSequence () const noexcept |
void | show () const noexcept |
bool | isIpeXForm (int num) const |
void | setIpeXForm (int num) |
Public Member Functions inherited from ipe::PdfResourceBase | |
PdfResourceBase () | |
virtual | ~PdfResourceBase () |
const PdfObj * | getDeep (const PdfDict *d, String key) const noexcept |
const PdfDict * | getDict (const PdfDict *d, String key) const noexcept |
const PdfDict * | resourcesOfKind (String kind) const noexcept |
const PdfDict * | findResource (String kind, String name) const noexcept |
const PdfDict * | findResource (const PdfDict *xf, String kind, String name) const noexcept |
-Additional Inherited Members | |
Protected Attributes inherited from ipe::PdfResourceBase | |
std::unique_ptr< PdfDict > | iPageResources |
All the resources needed by the text objects in the document.
-PdfResources::PdfResources | -( | -) | -- |
-
|
- -virtualdefault | -
bool PdfResources::collect | -( | -const PdfDict * | -resources, | -
- | - | PdfFile * | -file | -
- | ) | -- |
Collect (recursively) all the given resources (of the one latex page). Takes ownership of all the scanned objects.
- -References ipe::PdfDict::add(), ipe::PdfArray::append(), ipe::PdfObj::array(), ipe::PdfArray::count(), ipe::PdfDict::count(), ipe::PdfObj::dict(), ipe::PdfDict::get(), ipe::PdfResourceBase::iPageResources, ipe::PdfDict::key(), ipe::PdfObj::name(), ipe::PdfObj::number(), ipe::PdfArray::obj(), ipe::PdfObj::ref(), ipe::PdfObj::repr(), ipe::PdfNumber::value(), ipe::PdfName::value(), ipe::PdfRef::value(), ipe::PdfDict::value(), and ipe::String::z().
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfResourceBase.
- -
-
|
- -virtualnoexcept | -
References ipe::PdfResourceBase::iPageResources.
- -
-
|
- -noexcept | -
-
|
- -noexcept | -
References ipe::Text::text().
- -
-
|
- -inlinenoexcept | -
-
|
- -noexcept | -
References ipe::PdfResourceBase::iPageResources, and ipe::String::z().
- -bool PdfResources::isIpeXForm | -( | -int | -num | ) | -const | -
void PdfResources::setIpeXForm | -( | -int | -num | ) | -- |
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfResources, including all inherited members.
-addPageNumber(SPageNumber &pn) noexcept | ipe::PdfResources | |
baseResources() const noexcept | ipe::PdfResources | virtual |
collect(const PdfDict *resources, PdfFile *file) | ipe::PdfResources | |
embedSequence() const noexcept | ipe::PdfResources | inline |
findResource(String kind, String name) const noexcept | ipe::PdfResourceBase | |
findResource(const PdfDict *xf, String kind, String name) const noexcept | ipe::PdfResourceBase | |
getDeep(const PdfDict *d, String key) const noexcept | ipe::PdfResourceBase | |
getDict(const PdfDict *d, String key) const noexcept | ipe::PdfResourceBase | |
iPageResources | ipe::PdfResourceBase | protected |
isIpeXForm(int num) const | ipe::PdfResources | |
object(int num) const noexcept | ipe::PdfResources | virtual |
pageNumber(int page, int view) const noexcept | ipe::PdfResources | |
PdfResourceBase() | ipe::PdfResourceBase | |
PdfResources() | ipe::PdfResources | |
resourcesOfKind(String kind) const noexcept | ipe::PdfResourceBase | |
setIpeXForm(int num) | ipe::PdfResources | |
show() const noexcept | ipe::PdfResources | |
~PdfResourceBase() | ipe::PdfResourceBase | virtual |
~PdfResources()=default | ipe::PdfResources | virtual |
- Ipelib
-
- |
-
#include <ipepdfparser.h>
Inherits ipe::PdfObj.
--Public Member Functions | |
PdfString (const String &val, bool binary=false) | |
virtual const PdfString * | string () const noexcept |
virtual void | write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept |
String | value () const noexcept |
String | decode () const noexcept |
Public Member Functions inherited from ipe::PdfObj | |
virtual | ~PdfObj ()=0 |
virtual const PdfNull * | null () const noexcept |
virtual const PdfBool * | boolean () const noexcept |
virtual const PdfNumber * | number () const noexcept |
virtual const PdfName * | name () const noexcept |
virtual const PdfRef * | ref () const noexcept |
virtual const PdfArray * | array () const noexcept |
virtual const PdfDict * | dict () const noexcept |
String | repr () const noexcept |
The PDF string object.
-
-
|
- -inlineexplicit | -
References ipe::PdfObj::string(), and ipe::PdfObj::write().
- -
-
|
- -virtualnoexcept | -
Return this object as PDF string object.
- -Reimplemented from ipe::PdfObj.
- -
-
|
- -virtualnoexcept | -
Implements ipe::PdfObj.
- -
-
|
- -inlinenoexcept | -
-
|
- -noexcept | -
Return value of string after decoding binary strings.
- -References ipe::String::appendUtf8(), ipe::Lex::eos(), and ipe::Lex::getHexByte().
- -Referenced by ipe::CairoPainter::executeStream().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfString, including all inherited members.
-array() const noexcept | ipe::PdfObj | virtual |
boolean() const noexcept | ipe::PdfObj | virtual |
decode() const noexcept | ipe::PdfString | |
dict() const noexcept | ipe::PdfObj | virtual |
name() const noexcept | ipe::PdfObj | virtual |
null() const noexcept | ipe::PdfObj | virtual |
number() const noexcept | ipe::PdfObj | virtual |
PdfString(const String &val, bool binary=false) | ipe::PdfString | inlineexplicit |
ref() const noexcept | ipe::PdfObj | virtual |
repr() const noexcept | ipe::PdfObj | |
string() const noexcept | ipe::PdfString | virtual |
value() const noexcept | ipe::PdfString | inline |
write(Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept | ipe::PdfString | virtual |
~PdfObj()=0 | ipe::PdfObj | pure virtual |
- Ipelib
-
- |
-
#include <ipethumbs.h>
-Public Member Functions | |
PdfThumbnail (const PdfFile *pdf, int width) | |
int | width () const |
int | height () const |
Buffer | render (const PdfDict *page) |
PdfThumbnail::PdfThumbnail | -( | -const PdfFile * | -pdf, | -
- | - | int | -width | -
- | ) | -- |
References ipe::Rect::height(), ipe::max(), ipe::StyleSheet::standard(), ipe::Thumbnail::width(), and ipe::Rect::width().
- -
-
|
- -inline | -
-
|
- -inline | -
References ipe::Thumbnail::render().
- -References ipe::Buffer::data(), ipe::PdfObj::dict(), ipe::CairoPainter::executeStream(), ipe::PdfDict::get(), and ipe::Rect::width().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfThumbnail, including all inherited members.
-height() const | ipe::PdfThumbnail | inline |
PdfThumbnail(const PdfFile *pdf, int width) | ipe::PdfThumbnail | |
render(const PdfDict *page) | ipe::PdfThumbnail | |
width() const | ipe::PdfThumbnail | inline |
- Ipelib
-
- |
-
#include <ipepdfview.h>
Inherited by ipe::PdfView, ipe::PdfView, and PdfView.
--Public Member Functions | |
virtual | ~PdfViewBase () |
void | setPdf (const PdfFile *pdf, Fonts *fonts) |
void | setPage (const PdfDict *page, const Rect &paper) |
void | setBackground (const Color &bg) |
void | setBlackout (bool bo) |
Vector | pan () const |
double | zoom () const |
Vector | center () const |
int | viewWidth () const |
int | viewHeight () const |
bool | blackout () const |
Vector | devToUser (const Vector &arg) const |
Vector | userToDev (const Vector &arg) const |
void | setPan (const Vector &v) |
void | setZoom (double zoom) |
Matrix | canvasTfm () const |
void | updatePdf () |
virtual void | invalidate (int x, int y, int w, int h)=0 |
virtual void | invalidate ()=0 |
-Protected Member Functions | |
PdfViewBase () | |
void | drawPaper (cairo_t *cc) |
void | refreshSurface () |
-Protected Attributes | |
double | iWidth |
double | iHeight |
double | iBWidth |
double | iBHeight |
Vector | iPan |
double | iZoom |
Color | iBackground |
bool | iBlackout |
bool | iRepaint |
cairo_surface_t * | iSurface |
std::unique_ptr< Cascade > | iCascade |
const PdfDict * | iPage |
Rect | iPaperBox |
const PdfDict * | iStream |
const PdfFile * | iPdf |
Fonts * | iFonts |
A widget (control) that displays a PDF document.
-
-
|
- -virtual | -
destructor.
- -References iSurface.
- -
-
|
- -protected | -
Construct a new canvas.
- -Referenced by blackout().
- -void PdfViewBase::setPage | -( | -const PdfDict * | -page, | -
- | - | const Rect & | -paper | -
- | ) | -- |
Provide the page to view.
- -References ipe::PdfObj::dict(), ipe::PdfDict::get(), iPage, iPaperBox, iPdf, and iStream.
- -void PdfViewBase::setBackground | -( | -const Color & | -bg | ) | -- |
Set background color.
- -References iBackground.
- -void PdfViewBase::setBlackout | -( | -bool | -bo | ) | -- |
Set blackout.
- -References iBlackout.
- -
-
|
- -inline | -
Return current pan.
- -References iPan.
- -
-
|
- -inline | -
-
|
- -inline | -
Return center of view.
- -References iHeight, and iWidth.
- -Referenced by canvasTfm(), devToUser(), and userToDev().
- -
-
|
- -inline | -
Return width of view.
- -References iWidth.
- -
-
|
- -inline | -
Return height of view.
- -References iHeight.
- -
-
|
- -inline | -
Return current blackout state.
- -References canvasTfm(), devToUser(), drawPaper(), iBlackout, invalidate(), PdfViewBase(), refreshSurface(), setPan(), setZoom(), updatePdf(), userToDev(), and zoom().
- -Convert canvas (device) coordinates to user coordinates.
- -References center(), iPan, iZoom, ipe::Vector::x, and ipe::Vector::y.
- -Referenced by blackout(), and ipe::PdfView::mousePressEvent().
- -Convert user coordinates to canvas (device) coordinates.
- -References center(), iPan, iZoom, ipe::Vector::x, and ipe::Vector::y.
- -Referenced by blackout().
- -void PdfViewBase::setPan | -( | -const Vector & | -v | ) | -- |
Set current pan position.
-The pan position is the user coordinate that is displayed at the very center of the canvas.
- -References iPan.
- -Referenced by blackout().
- -void PdfViewBase::setZoom | -( | -double | -zoom | ) | -- |
Set current zoom factor.
-The zoom factor maps user coordinates to screen pixel coordinates.
- - - -Referenced by blackout().
- -Matrix PdfViewBase::canvasTfm | -( | -) | -const | -
Matrix mapping user coordinates to canvas coordinates.
- -References center(), iPan, and iZoom.
- -Referenced by blackout().
- -void PdfViewBase::updatePdf | -( | -) | -- |
Mark for update with redrawing of PDF document.
- -References invalidate(), and iRepaint.
- -Referenced by blackout().
- -
-
|
- -pure virtual | -
Implemented in ipe::PdfView.
- -
-
|
- -pure virtual | -
Implemented in ipe::PdfView.
- -Referenced by blackout(), and updatePdf().
- -
-
|
- -protected | -
References ipe::Rect::bottom(), ipe::Rect::height(), iPaperBox, ipe::Rect::isEmpty(), ipe::Rect::left(), and ipe::Rect::width().
- -Referenced by blackout(), and refreshSurface().
- -
-
|
- -protected | -
References drawPaper(), ipe::CairoPainter::executeStream(), iBackground, iBHeight, iBlackout, ipe::Color::iBlue, iBWidth, iCascade, iFonts, ipe::Color::iGreen, iHeight, iPage, iPan, ipe::Color::iRed, iRepaint, iStream, iSurface, iWidth, iZoom, ipe::Fixed::toDouble(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by blackout(), PdfView::drawRect(), and ipe::PdfView::paintEvent().
- -
-
|
- -protected | -
Referenced by center(), PdfView::drawRect(), ipe::PdfView::invalidate(), ipe::PdfView::paintEvent(), refreshSurface(), and viewWidth().
- -
-
|
- -protected | -
Referenced by center(), PdfView::drawRect(), ipe::PdfView::invalidate(), ipe::PdfView::paintEvent(), refreshSurface(), and viewHeight().
- -
-
|
- -protected | -
Referenced by PdfView::drawRect(), ipe::PdfView::paintEvent(), and refreshSurface().
- -
-
|
- -protected | -
Referenced by PdfView::drawRect(), ipe::PdfView::paintEvent(), and refreshSurface().
- -
-
|
- -protected | -
Referenced by canvasTfm(), devToUser(), pan(), refreshSurface(), setPan(), and userToDev().
- -
-
|
- -protected | -
Referenced by canvasTfm(), devToUser(), refreshSurface(), setZoom(), userToDev(), and zoom().
- -
-
|
- -protected | -
Referenced by refreshSurface(), and setBackground().
- -
-
|
- -protected | -
Referenced by blackout(), refreshSurface(), and setBlackout().
- -
-
|
- -protected | -
Referenced by refreshSurface(), and updatePdf().
- -
-
|
- -protected | -
Referenced by PdfView::drawRect(), ipe::PdfView::paintEvent(), refreshSurface(), and ~PdfViewBase().
- -
-
|
- -protected | -
Referenced by refreshSurface().
- -
-
|
- -protected | -
Referenced by refreshSurface(), setPage(), and setPdf().
- -
-
|
- -protected | -
Referenced by drawPaper(), and setPage().
- -
-
|
- -protected | -
Referenced by refreshSurface(), setPage(), and setPdf().
- -
-
|
- -protected | -
-
|
- -protected | -
Referenced by refreshSurface(), and setPdf().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfViewBase, including all inherited members.
-blackout() const | ipe::PdfViewBase | inline |
canvasTfm() const | ipe::PdfViewBase | |
center() const | ipe::PdfViewBase | inline |
devToUser(const Vector &arg) const | ipe::PdfViewBase | |
drawPaper(cairo_t *cc) | ipe::PdfViewBase | protected |
iBackground | ipe::PdfViewBase | protected |
iBHeight | ipe::PdfViewBase | protected |
iBlackout | ipe::PdfViewBase | protected |
iBWidth | ipe::PdfViewBase | protected |
iCascade | ipe::PdfViewBase | protected |
iFonts | ipe::PdfViewBase | protected |
iHeight | ipe::PdfViewBase | protected |
invalidate(int x, int y, int w, int h)=0 | ipe::PdfViewBase | pure virtual |
invalidate()=0 | ipe::PdfViewBase | pure virtual |
iPage | ipe::PdfViewBase | protected |
iPan | ipe::PdfViewBase | protected |
iPaperBox | ipe::PdfViewBase | protected |
iPdf | ipe::PdfViewBase | protected |
iRepaint | ipe::PdfViewBase | protected |
iStream | ipe::PdfViewBase | protected |
iSurface | ipe::PdfViewBase | protected |
iWidth | ipe::PdfViewBase | protected |
iZoom | ipe::PdfViewBase | protected |
pan() const | ipe::PdfViewBase | inline |
PdfViewBase() | ipe::PdfViewBase | protected |
refreshSurface() | ipe::PdfViewBase | protected |
setBackground(const Color &bg) | ipe::PdfViewBase | |
setBlackout(bool bo) | ipe::PdfViewBase | |
setPage(const PdfDict *page, const Rect &paper) | ipe::PdfViewBase | |
setPan(const Vector &v) | ipe::PdfViewBase | |
setPdf(const PdfFile *pdf, Fonts *fonts) | ipe::PdfViewBase | |
setZoom(double zoom) | ipe::PdfViewBase | |
updatePdf() | ipe::PdfViewBase | |
userToDev(const Vector &arg) const | ipe::PdfViewBase | |
viewHeight() const | ipe::PdfViewBase | inline |
viewWidth() const | ipe::PdfViewBase | inline |
zoom() const | ipe::PdfViewBase | inline |
~PdfViewBase() | ipe::PdfViewBase | virtual |
- Ipelib
-
- |
-
#include <ipepdfview_win.h>
Inherits ipe::PdfViewBase, QWidget, and ipe::PdfViewBase.
--Signals | |
void | sizeChanged () |
void | mouseButton (int, Vector) |
-Public Member Functions | |
PdfView (QWidget *parent, Qt::WindowFlags f=nullptr) | |
virtual void | invalidate () |
virtual void | invalidate (int x, int y, int w, int h) |
PdfView (HWND parent, HWND target, int screen, HINSTANCE hInstance=nullptr) | |
HWND | windowId () const |
Public Member Functions inherited from ipe::PdfViewBase | |
virtual | ~PdfViewBase () |
void | setPdf (const PdfFile *pdf, Fonts *fonts) |
void | setPage (const PdfDict *page, const Rect &paper) |
void | setBackground (const Color &bg) |
void | setBlackout (bool bo) |
Vector | pan () const |
double | zoom () const |
Vector | center () const |
int | viewWidth () const |
int | viewHeight () const |
bool | blackout () const |
Vector | devToUser (const Vector &arg) const |
Vector | userToDev (const Vector &arg) const |
void | setPan (const Vector &v) |
void | setZoom (double zoom) |
Matrix | canvasTfm () const |
void | updatePdf () |
-Static Public Member Functions | |
static void | init (HINSTANCE hInstance) |
-Static Public Attributes | |
static constexpr int | WM_PDFVIEW = 0x8000 |
-Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *ev) |
virtual void | mousePressEvent (QMouseEvent *ev) |
virtual QSize | sizeHint () const |
Protected Member Functions inherited from ipe::PdfViewBase | |
PdfViewBase () | |
void | drawPaper (cairo_t *cc) |
void | refreshSurface () |
-Additional Inherited Members | |
Protected Attributes inherited from ipe::PdfViewBase | |
double | iWidth |
double | iHeight |
double | iBWidth |
double | iBHeight |
Vector | iPan |
double | iZoom |
Color | iBackground |
bool | iBlackout |
bool | iRepaint |
cairo_surface_t * | iSurface |
std::unique_ptr< Cascade > | iCascade |
const PdfDict * | iPage |
Rect | iPaperBox |
const PdfDict * | iStream |
const PdfFile * | iPdf |
Fonts * | iFonts |
PdfView::PdfView | -( | -QWidget * | -parent, | -
- | - | Qt::WindowFlags | -f = nullptr |
-
- | ) | -- |
Referenced by PdfView::drawRect().
- -PdfView::PdfView | -( | -HWND | -parent, | -
- | - | HWND | -target, | -
- | - | int | -screen, | -
- | - | HINSTANCE | -hInstance = nullptr |
-
- | ) | -- |
-
|
- -virtual | -
Implements ipe::PdfViewBase.
- -References ipe::PdfViewBase::iHeight, and ipe::PdfViewBase::iWidth.
- -Referenced by sizeHint(), and windowId().
- -
-
|
- -virtual | -
Implements ipe::PdfViewBase.
- -References ipe::PdfViewBase::iHeight.
- -
-
|
- -signal | -
Referenced by paintEvent().
- -
-
|
- -signal | -
Referenced by mousePressEvent().
- -
-
|
- -protectedvirtual | -
-
|
- -protectedvirtual | -
References ipe::PdfViewBase::devToUser(), and mouseButton().
- -
-
|
- -protectedvirtual | -
References invalidate().
- -
-
|
- -static | -
-
|
- -inline | -
References invalidate().
- -
-
|
- -static | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfView, including all inherited members.
-blackout() const | ipe::PdfViewBase | inline |
canvasTfm() const | ipe::PdfViewBase | |
center() const | ipe::PdfViewBase | inline |
devToUser(const Vector &arg) const | ipe::PdfViewBase | |
drawPaper(cairo_t *cc) | ipe::PdfViewBase | protected |
iBackground | ipe::PdfViewBase | protected |
iBHeight | ipe::PdfViewBase | protected |
iBlackout | ipe::PdfViewBase | protected |
iBWidth | ipe::PdfViewBase | protected |
iCascade | ipe::PdfViewBase | protected |
iFonts | ipe::PdfViewBase | protected |
iHeight | ipe::PdfViewBase | protected |
init(HINSTANCE hInstance) | ipe::PdfView | static |
invalidate() | ipe::PdfView | virtual |
invalidate(int x, int y, int w, int h) | ipe::PdfView | virtual |
iPage | ipe::PdfViewBase | protected |
iPan | ipe::PdfViewBase | protected |
iPaperBox | ipe::PdfViewBase | protected |
iPdf | ipe::PdfViewBase | protected |
iRepaint | ipe::PdfViewBase | protected |
iStream | ipe::PdfViewBase | protected |
iSurface | ipe::PdfViewBase | protected |
iWidth | ipe::PdfViewBase | protected |
iZoom | ipe::PdfViewBase | protected |
mouseButton(int, Vector) | ipe::PdfView | signal |
mousePressEvent(QMouseEvent *ev) | ipe::PdfView | protectedvirtual |
paintEvent(QPaintEvent *ev) | ipe::PdfView | protectedvirtual |
pan() const | ipe::PdfViewBase | inline |
PdfView(QWidget *parent, Qt::WindowFlags f=nullptr) | ipe::PdfView | |
PdfView(HWND parent, HWND target, int screen, HINSTANCE hInstance=nullptr) | ipe::PdfView | |
PdfViewBase() | ipe::PdfViewBase | protected |
refreshSurface() | ipe::PdfViewBase | protected |
setBackground(const Color &bg) | ipe::PdfViewBase | |
setBlackout(bool bo) | ipe::PdfViewBase | |
setPage(const PdfDict *page, const Rect &paper) | ipe::PdfViewBase | |
setPan(const Vector &v) | ipe::PdfViewBase | |
setPdf(const PdfFile *pdf, Fonts *fonts) | ipe::PdfViewBase | |
setZoom(double zoom) | ipe::PdfViewBase | |
sizeChanged() | ipe::PdfView | signal |
sizeHint() const | ipe::PdfView | protectedvirtual |
updatePdf() | ipe::PdfViewBase | |
userToDev(const Vector &arg) const | ipe::PdfViewBase | |
viewHeight() const | ipe::PdfViewBase | inline |
viewWidth() const | ipe::PdfViewBase | inline |
windowId() const | ipe::PdfView | inline |
WM_PDFVIEW | ipe::PdfView | static |
zoom() const | ipe::PdfViewBase | inline |
~PdfViewBase() | ipe::PdfViewBase | virtual |
- Ipelib
-
- |
-
#include <ipepdfwriter.h>
-Public Member Functions | |
PdfWriter (TellStream &stream, const Document *doc, const PdfResources *resources, uint32_t flags, int fromPage, int toPage, int compression) | |
~PdfWriter () | |
void | createPages () |
void | createPageView (int page, int view) |
void | createBookmarks () |
void | createNamedDests () |
void | createXmlStream (String xmldata, bool preCompressed) |
void | createTrailer () |
Create PDF file.
-This class is responsible for the creation of a PDF file from the Ipe data. You have to create a PdfWriter first, providing a file that has been opened for (binary) writing and is empty. Then call createPages() to embed the pages. Optionally, call createXmlStream
to embed a stream with the XML representation of the document. Finally, call createTrailer
to complete the PDF document, and close the file.
Some reserved PDF object numbers:
-PdfWriter::PdfWriter | -( | -TellStream & | -stream, | -
- | - | const Document * | -doc, | -
- | - | const PdfResources * | -resources, | -
- | - | uint32_t | -flags, | -
- | - | int | -fromPage, | -
- | - | int | -toPage, | -
- | - | int | -compression | -
- | ) | -- |
Create a PDF writer operating on this (open and empty) file.
- -Referenced by ipe::PdfPainter::doDrawSymbol().
- -PdfWriter::~PdfWriter | -( | -) | -- |
Destructor.
- -References ipe::Attribute::BACKGROUND(), ipe::Bitmap::colorKey(), ipe::Page::count(), ipe::PdfDict::count(), ipe::Buffer::data(), ipe::DeflateStream::deflate(), ipe::PdfDict::deflated(), ipe::PdfObj::dict(), ipe::Text::draw(), ipe::Object::draw(), ipe::Bitmap::embed(), ipe::Page::findLayer(), ipe::PdfDict::getNumberArray(), ipe::Bitmap::hasAlpha(), ipe::Bitmap::height(), ipe::BitmapFinder::iBitmaps, ipe::TextPadding::iBottom, ipe::TextPadding::iLeft, ipe::PdfDict::inflate(), ipe::TextPadding::iRight, ipe::Bitmap::isGray(), ipe::Bitmap::isJpeg(), ipe::PdfPainter::iStream, ipe::TextPadding::iTop, ipe::PdfDict::key(), ipe::Page::layerMatrices(), ipe::Page::layerOf(), ipe::String::left(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Stream::putChar(), ipe::Stream::putRaw(), ipe::PdfObj::ref(), ipe::Painter::setAttributeMap(), ipe::Bitmap::setObjNum(), ipe::size(), ipe::Buffer::size(), ipe::PdfDict::stream(), ipe::Page::titleText(), ipe::PdfRef::value(), ipe::PdfDict::value(), ipe::Page::viewMap(), ipe::Bitmap::width(), and ipe::PdfObj::write().
- -void PdfWriter::createPages | -( | -) | -- |
Create all PDF pages.
- -References ipe::SaveFlag::MarkedView.
- -Referenced by ipe::Document::exportPages(), and ipe::Document::save().
- -void PdfWriter::createPageView | -( | -int | -page, | -
- | - | int | -view | -
- | ) | -- |
create contents and page stream for this page view.
- -References ipe::Object::accept(), ipe::Object::asGroup(), ipe::Attribute::BACKGROUND(), ipe::Page::bbox(), ipe::DeflateStream::close(), ipe::Page::count(), ipe::String::data(), ipe::Page::effect(), ipe::String::empty(), ipe::SaveFlag::Export, ipe::Page::findLayer(), ipe::Layout::iCrop, ipe::Symbol::iObject, ipe::Rect::isEmpty(), ipe::Attribute::isNormal(), ipe::PdfPainter::iStream, ipe::SaveFlag::KeepNotes, ipe::String::left(), ipe::Page::notes(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Page::pageBBox(), ipe::Effect::pageDictionary(), ipe::Layout::paper(), ipe::BitmapFinder::scanPage(), ipe::String::size(), ipe::String::substr(), ipe::Group::url(), ipe::Page::viewBBox(), and ipe::Page::visible().
- -Referenced by ipe::Document::exportView().
- -void PdfWriter::createBookmarks | -( | -) | -- |
Create the bookmarks (PDF outline).
- -References ipe::String::empty(), ipe::PdfPainter::iStream, ipe::SaveFlag::MarkedView, and ipe::size().
- -Referenced by ipe::Document::save().
- -void PdfWriter::createNamedDests | -( | -) | -- |
Create the named destinations.
- -References ipe::String::empty(), ipe::PdfPainter::iStream, and ipe::SaveFlag::MarkedView.
- -Referenced by ipe::Document::save().
- -void PdfWriter::createXmlStream | -( | -String | -xmldata, | -
- | - | bool | -preCompressed | -
- | ) | -- |
Create a stream containing the XML data.
- -References ipe::String::data(), ipe::PdfPainter::iStream, ipe::String::size(), and ipe::String::unicode().
- -Referenced by ipe::Document::save().
- -void PdfWriter::createTrailer | -( | -) | -- |
Create the root objects and trailer of the PDF file.
- -References ipe::String::empty(), ipe::String::find(), ipe::Document::SProperties::iAuthor, ipe::Document::SProperties::iCreated, ipe::Document::SProperties::iCreator, ipe::Document::SProperties::iFullScreen, ipe::Document::SProperties::iKeywords, ipe::Document::SProperties::iModified, ipe::PdfPainter::iStream, ipe::Document::SProperties::iSubject, ipe::Document::SProperties::iTitle, and ipe::SaveFlag::MarkedView.
- -Referenced by ipe::Document::exportPages(), ipe::Document::exportView(), and ipe::Document::save().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PdfWriter, including all inherited members.
-createBookmarks() | ipe::PdfWriter | |
createNamedDests() | ipe::PdfWriter | |
createPages() | ipe::PdfWriter | |
createPageView(int page, int view) | ipe::PdfWriter | |
createTrailer() | ipe::PdfWriter | |
createXmlStream(String xmldata, bool preCompressed) | ipe::PdfWriter | |
PdfWriter(TellStream &stream, const Document *doc, const PdfResources *resources, uint32_t flags, int fromPage, int toPage, int compression) | ipe::PdfWriter | |
~PdfWriter() | ipe::PdfWriter |
- Ipelib
-
- |
-
#include <ipebase.h>
-Public Types | |
using | DebugHandler = void(*)(const char *) |
-Static Public Member Functions | |
static FILE * | fopen (const char *fname, const char *mode) |
static String | ipeDrive () |
static int | libVersion () |
static void | initLib (int version) |
static void | setDebug (bool debug) |
static String | currentDirectory () |
static String | latexDirectory () |
static String | latexPath () |
static bool | fileExists (String fname) |
static bool | listDirectory (String path, std::vector< String > &files) |
static String | realPath (String fname) |
static String | readFile (String fname) |
static int | runLatex (String dir, LatexType engine, String docname) noexcept |
static double | toDouble (String s) |
static int | toNumber (String s, int &iValue, double &dValue) |
Platform dependent methods.
-using ipe::Platform::DebugHandler = void (*)(const char *) | -
-
|
- -inlinestatic | -
-
|
- -static | -
Returns drive on which Ipe executable exists.
-On Linux and OSX, returns empty string.
- -References ipe::IPESEP, ipe::String::left(), ipe::String::rfind(), ipe::size(), and ipe::String::size().
- -Referenced by latexDirectory(), and latexPath().
- -
-
|
- -static | -
Return the Ipelib version.
-This is available as a function so that one can verify what version of Ipelib one has actually linked with (as opposed to the header files used during compilation).
- -References ipe::Repository::cleanup(), ipe::String::data(), ipe::String::empty(), fileExists(), ipe::String::getLine(), ipe::IPELIB_VERSION, readFile(), ipe::String::size(), and ipe::String::z().
- -
-
|
- -static | -
Initialize Ipelib.
-This method must be called before Ipelib is used.
-It creates a LC_NUMERIC locale set to 'C', which is necessary for correct loading and saving of Ipe objects. The method also checks that the correct version of Ipelib is loaded, and aborts with an error message if the version is not correct. Also enables ipeDebug messages if environment variable IPEDEBUG is defined. (You can override this using setDebug).
- -References ipe::IPELIB_VERSION.
- -
-
|
- -static | -
Enable or disable display of ipeDebug messages.
- -
-
|
- -static | -
Returns current working directory.
-Returns empty string if something fails.
- -
-
|
- -static | -
Returns directory for running Latex.
-The directory is created if it does not exist. Returns an empty string if the directory cannot be found or cannot be created. The directory returned ends in the path separator.
- -References fileExists(), ipeDrive(), ipe::String::left(), ipe::String::right(), ipe::String::size(), ipe::String::substr(), and ipe::String::z().
- -Referenced by ipe::Document::runLatex().
- -
-
|
- -static | -
Return path for the directory containing pdflatex and xelatex.
-If empty means look on PATH.
- -References ipeDrive(), ipe::String::left(), and ipe::String::substr().
- -Referenced by runLatex().
- -
-
|
- -static | -
Determine whether file exists.
- -References ipe::String::data(), and ipe::String::z().
- -Referenced by latexDirectory(), and libVersion().
- -
-
|
- -static | -
List all files in directory.
-Return true if successful, false on error.
- -References ipe::String::data(), and ipe::String::z().
- -Convert relative filename to absolute.
-This also works when the filename does not exist, or at least it tries.
- -References ipe::String::data(), ipe::String::left(), and ipe::String::z().
- -Referenced by runLatex().
- -Read entire file into string.
-Returns an empty string if file cannot be found or read. There is no way to distinguish an empty file from this.
- -References ipe::String::append(), fopen(), and ipe::String::z().
- -Referenced by libVersion(), ipe::Bitmap::readJpeg(), ipe::Document::runLatex(), and runLatex().
- -
-
|
- -staticnoexcept | -
Runs latex on file ipetemp.tex in given directory.
-directory of docname is added to TEXINPUTS if its non-empty.
- -References ipe::String::empty(), fopen(), ipe::IPESEP, latexPath(), ipe::String::left(), ipe::Luatex, readFile(), realPath(), ipe::size(), ipe::String::String(), ipe::String::substr(), ipe::Xetex, and ipe::String::z().
- -Referenced by ipe::Document::runLatex().
- -
-
|
- -static | -
References ipe::String::z().
- -Referenced by ipe::Lex::getDouble(), ipe::PdfParser::getObject(), and ipe::PdfParser::getToken().
- -
-
|
- -static | -
References ipe::String::z().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Platform, including all inherited members.
-currentDirectory() | ipe::Platform | static |
DebugHandler typedef | ipe::Platform | |
fileExists(String fname) | ipe::Platform | static |
fopen(const char *fname, const char *mode) | ipe::Platform | inlinestatic |
initLib(int version) | ipe::Platform | static |
ipeDrive() | ipe::Platform | static |
latexDirectory() | ipe::Platform | static |
latexPath() | ipe::Platform | static |
libVersion() | ipe::Platform | static |
listDirectory(String path, std::vector< String > &files) | ipe::Platform | static |
readFile(String fname) | ipe::Platform | static |
realPath(String fname) | ipe::Platform | static |
runLatex(String dir, LatexType engine, String docname) noexcept | ipe::Platform | static |
setDebug(bool debug) | ipe::Platform | static |
toDouble(String s) | ipe::Platform | static |
toNumber(String s, int &iValue, double &dValue) | ipe::Platform | static |
- Ipelib
-
- |
-
#include <ipepswriter.h>
Inherits ipe::PdfPainter.
--Public Member Functions | |
PsPainter (const Cascade *style, Stream &stream) | |
~PsPainter () | |
Public Member Functions inherited from ipe::PdfPainter | |
PdfPainter (const Cascade *style, Stream &stream) | |
virtual | ~PdfPainter () |
Public Member Functions inherited from ipe::Painter | |
Painter (const Cascade *style) | |
virtual | ~Painter () |
void | setAttributeMap (const AttributeMap *map) |
Attribute | lookup (Kind kind, Attribute sym) const |
void | transform (const Matrix &m) |
void | untransform (TTransformations trans) |
void | translate (const Vector &v) |
void | push () |
void | pop () |
void | pushMatrix () |
void | popMatrix () |
void | newPath () |
void | moveTo (const Vector &v) |
void | lineTo (const Vector &v) |
void | curveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
void | curveTo (const Bezier &bezier) |
void | rect (const Rect &re) |
void | drawEllipse () |
void | drawArc (const Arc &arc) |
void | closePath () |
void | drawPath (TPathMode mode) |
void | drawBitmap (Bitmap bitmap) |
void | drawText (const Text *text) |
void | drawSymbol (Attribute symbol) |
void | addClipPath () |
void | setStroke (Attribute color) |
void | setFill (Attribute color) |
void | setPen (Attribute pen) |
void | setDashStyle (Attribute dash) |
void | setLineCap (TLineCap cap) |
void | setLineJoin (TLineJoin join) |
void | setFillRule (TFillRule rule) |
void | setSymStroke (Attribute color) |
void | setSymFill (Attribute color) |
void | setSymPen (Attribute wid) |
void | setOpacity (Attribute opaq) |
void | setStrokeOpacity (Attribute opaq) |
void | setTiling (Attribute til) |
void | setGradient (Attribute grad) |
const Cascade * | cascade () const |
Color | stroke () const |
Color | fill () const |
const Matrix & | matrix () const |
Fixed | pen () const |
String | dashStyle () const |
void | dashStyle (std::vector< double > &dashes, double &offset) const |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
Color | symStroke () const |
Color | symFill () const |
Fixed | symPen () const |
Fixed | opacity () const |
Fixed | strokeOpacity () const |
Attribute | tiling () const |
Attribute | gradient () const |
const State & | state () const |
void | setState (const State &state) |
-Protected Member Functions | |
virtual void | doNewPath () |
virtual void | doDrawPath (TPathMode mode) |
virtual void | doDrawBitmap (Bitmap bitmap) |
virtual void | doAddClipPath () |
Protected Member Functions inherited from ipe::PdfPainter | |
virtual void | doPush () |
virtual void | doPop () |
virtual void | doMoveTo (const Vector &v) |
virtual void | doLineTo (const Vector &v) |
virtual void | doCurveTo (const Vector &v1, const Vector &v2, const Vector &v3) |
virtual void | doClosePath () |
virtual void | doDrawText (const Text *text) |
virtual void | doDrawSymbol (Attribute symbol) |
void | drawAttributes () |
void | drawOpacity (bool withStroke) |
Protected Member Functions inherited from ipe::Painter | |
virtual void | doDrawArc (const Arc &arc) |
void | drawArcAsBezier (double alpha) |
-Additional Inherited Members | |
Static Public Member Functions inherited from ipe::PdfPainter | |
static void | drawColor (Stream &stream, Color color, const char *gray, const char *rgb) |
Protected Attributes inherited from ipe::PdfPainter | |
Stream & | iStream |
std::list< State > | iActiveState |
Protected Attributes inherited from ipe::Painter | |
std::list< State > | iState |
std::list< Matrix > | iMatrix |
const Cascade * | iCascade |
const AttributeMap * | iAttributeMap |
int | iInPath |
ipe::PsPainter::PsPainter | -( | -const Cascade * | -style, | -
- | - | Stream & | -stream | -
- | ) | -- |
ipe::PsPainter::~PsPainter | -( | -) | -- |
-
|
- -protectedvirtual | -
Perform new path operator.
- -Reimplemented from ipe::PdfPainter.
- -
-
|
- -protectedvirtual | -
Actually draw the path.
- -Reimplemented from ipe::PdfPainter.
- -
-
|
- -protectedvirtual | -
Draw a bitmap.
- -Reimplemented from ipe::PdfPainter.
- -
-
|
- -protectedvirtual | -
Add a clip path.
- -Reimplemented from ipe::PdfPainter.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::PsPainter, including all inherited members.
-addClipPath() | ipe::Painter | |
cascade() const | ipe::Painter | inline |
closePath() | ipe::Painter | |
curveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::Painter | |
curveTo(const Bezier &bezier) | ipe::Painter | inline |
dashStyle() const | ipe::Painter | inline |
dashStyle(std::vector< double > &dashes, double &offset) const | ipe::Painter | |
doAddClipPath() | ipe::PsPainter | protectedvirtual |
doClosePath() | ipe::PdfPainter | protectedvirtual |
doCurveTo(const Vector &v1, const Vector &v2, const Vector &v3) | ipe::PdfPainter | protectedvirtual |
doDrawArc(const Arc &arc) | ipe::Painter | protectedvirtual |
doDrawBitmap(Bitmap bitmap) | ipe::PsPainter | protectedvirtual |
doDrawPath(TPathMode mode) | ipe::PsPainter | protectedvirtual |
doDrawSymbol(Attribute symbol) | ipe::PdfPainter | protectedvirtual |
doDrawText(const Text *text) | ipe::PdfPainter | protectedvirtual |
doLineTo(const Vector &v) | ipe::PdfPainter | protectedvirtual |
doMoveTo(const Vector &v) | ipe::PdfPainter | protectedvirtual |
doNewPath() | ipe::PsPainter | protectedvirtual |
doPop() | ipe::PdfPainter | protectedvirtual |
doPush() | ipe::PdfPainter | protectedvirtual |
drawArc(const Arc &arc) | ipe::Painter | |
drawArcAsBezier(double alpha) | ipe::Painter | protected |
drawAttributes() | ipe::PdfPainter | protected |
drawBitmap(Bitmap bitmap) | ipe::Painter | |
drawColor(Stream &stream, Color color, const char *gray, const char *rgb) | ipe::PdfPainter | static |
drawEllipse() | ipe::Painter | |
drawOpacity(bool withStroke) | ipe::PdfPainter | protected |
drawPath(TPathMode mode) | ipe::Painter | |
drawSymbol(Attribute symbol) | ipe::Painter | |
drawText(const Text *text) | ipe::Painter | |
fill() const | ipe::Painter | inline |
fillRule() const | ipe::Painter | inline |
gradient() const | ipe::Painter | inline |
iActiveState | ipe::PdfPainter | protected |
iAttributeMap | ipe::Painter | protected |
iCascade | ipe::Painter | protected |
iInPath | ipe::Painter | protected |
iMatrix | ipe::Painter | protected |
iState | ipe::Painter | protected |
iStream | ipe::PdfPainter | protected |
lineCap() const | ipe::Painter | inline |
lineJoin() const | ipe::Painter | inline |
lineTo(const Vector &v) | ipe::Painter | |
lookup(Kind kind, Attribute sym) const | ipe::Painter | |
matrix() const | ipe::Painter | inline |
moveTo(const Vector &v) | ipe::Painter | |
newPath() | ipe::Painter | |
opacity() const | ipe::Painter | inline |
Painter(const Cascade *style) | ipe::Painter | |
PdfPainter(const Cascade *style, Stream &stream) | ipe::PdfPainter | |
pen() const | ipe::Painter | inline |
pop() | ipe::Painter | |
popMatrix() | ipe::Painter | |
PsPainter(const Cascade *style, Stream &stream) | ipe::PsPainter | |
push() | ipe::Painter | |
pushMatrix() | ipe::Painter | |
rect(const Rect &re) | ipe::Painter | |
setAttributeMap(const AttributeMap *map) | ipe::Painter | |
setDashStyle(Attribute dash) | ipe::Painter | |
setFill(Attribute color) | ipe::Painter | |
setFillRule(TFillRule rule) | ipe::Painter | |
setGradient(Attribute grad) | ipe::Painter | |
setLineCap(TLineCap cap) | ipe::Painter | |
setLineJoin(TLineJoin join) | ipe::Painter | |
setOpacity(Attribute opaq) | ipe::Painter | |
setPen(Attribute pen) | ipe::Painter | |
setState(const State &state) | ipe::Painter | |
setStroke(Attribute color) | ipe::Painter | |
setStrokeOpacity(Attribute opaq) | ipe::Painter | |
setSymFill(Attribute color) | ipe::Painter | |
setSymPen(Attribute wid) | ipe::Painter | |
setSymStroke(Attribute color) | ipe::Painter | |
setTiling(Attribute til) | ipe::Painter | |
state() const | ipe::Painter | inline |
stroke() const | ipe::Painter | inline |
strokeOpacity() const | ipe::Painter | inline |
symFill() const | ipe::Painter | inline |
symPen() const | ipe::Painter | inline |
symStroke() const | ipe::Painter | inline |
tiling() const | ipe::Painter | inline |
transform(const Matrix &m) | ipe::Painter | |
translate(const Vector &v) | ipe::Painter | |
untransform(TTransformations trans) | ipe::Painter | |
~Painter() | ipe::Painter | virtual |
~PdfPainter() | ipe::PdfPainter | inlinevirtual |
~PsPainter() | ipe::PsPainter |
- Ipelib
-
- |
-
#include <ipepswriter.h>
-Public Member Functions | |
PsWriter (TellStream &stream, const Document *doc, bool noColor) | |
~PsWriter () | |
bool | createHeader (int pno=0, int vno=0) |
void | createPageView (int pno=0, int vno=0) |
void | createXml (int compressLevel) |
void | createTrailer () |
ipe::PsWriter::PsWriter | -( | -TellStream & | -stream, | -
- | - | const Document * | -doc, | -
- | - | bool | -noColor | -
- | ) | -- |
ipe::PsWriter::~PsWriter | -( | -) | -- |
bool ipe::PsWriter::createHeader | -( | -int | -pno = 0 , |
-
- | - | int | -vno = 0 |
-
- | ) | -- |
void ipe::PsWriter::createPageView | -( | -int | -pno = 0 , |
-
- | - | int | -vno = 0 |
-
- | ) | -- |
void ipe::PsWriter::createXml | -( | -int | -compressLevel | ) | -- |
void ipe::PsWriter::createTrailer | -( | -) | -- |
- Ipelib
-
- |
-
This is the complete list of members for ipe::PsWriter, including all inherited members.
-createHeader(int pno=0, int vno=0) | ipe::PsWriter | |
createPageView(int pno=0, int vno=0) | ipe::PsWriter | |
createTrailer() | ipe::PsWriter | |
createXml(int compressLevel) | ipe::PsWriter | |
PsWriter(TellStream &stream, const Document *doc, bool noColor) | ipe::PsWriter | |
~PsWriter() | ipe::PsWriter |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Rect () | |
Rect (const Vector &c) | |
Rect (const Vector &c1, const Vector &c2) | |
void | clear () |
int | isEmpty () const |
double | left () const |
double | right () const |
double | bottom () const |
double | top () const |
Vector | topRight () const |
Vector | bottomLeft () const |
Vector | topLeft () const |
Vector | bottomRight () const |
Vector | center () const |
double | width () const |
double | height () const |
void | addPoint (const Vector &rhs) |
void | addRect (const Rect &rhs) |
void | clipTo (const Rect &rhs) |
bool | contains (const Vector &rhs) const |
bool | contains (const Rect &rhs) const |
bool | certainClearance (const Vector &v, double bound) const |
bool | intersects (const Rect &rhs) const |
-Related Functions | |
(Note that these are not member functions.) - | |
Stream & | operator<< (Stream &stream, const Rect &rhs) |
Axis-parallel rectangle (which can be empty)
-
-
|
- -inlineexplicit | -
Create empty rectangle.
- -Referenced by ipe::Vector::snap().
- -
-
|
- -inlineexplicit | -
Create rectangle containing just the point c.
- -
-
|
- -explicit | -
Create rectangle containing points c1 and c2.
- -
-
|
- -inline | -
Make rectangle empty.
- -Referenced by ipe::BBoxPainter::doNewPath().
- -
-
|
- -inline | -
True if rectangle is empty.
- -Referenced by addRect(), clipTo(), contains(), ipe::PdfWriter::createPageView(), ipe::BBoxPainter::doDrawPath(), ipe::PdfViewBase::drawPaper(), and intersects().
- -
-
|
- -inline | -
Return left side.
- -Referenced by ipe::PdfViewBase::drawPaper().
- -
-
|
- -inline | -
Return right side.
- -
-
|
- -inline | -
Return bottom side.
- -Referenced by ipe::PdfViewBase::drawPaper().
- -
-
|
- -inline | -
Return top side.
- -
-
|
- -inline | -
Return top right corner.
- -Referenced by ipe::Image::addToBBox(), ipe::Bezier::bbox(), certainClearance(), ipe::Image::distance(), ipe::BBoxPainter::doCurveTo(), ipe::BBoxPainter::doDrawPath(), ipe::BBoxPainter::doDrawText(), ipe::Painter::rect(), ipe::Shape::Shape(), ipe::Image::snapCtl(), ipe::CanvasBase::snapToPaperAndFrame(), and ipe::TransformTool::TransformTool().
- -
-
|
- -inline | -
Return bottom left corner.
- -Referenced by ipe::Image::addToBBox(), ipe::Bezier::bbox(), certainClearance(), ipe::Latex::createLatexSource(), ipe::Image::distance(), ipe::BBoxPainter::doCurveTo(), ipe::BBoxPainter::doDrawPath(), ipe::BBoxPainter::doDrawText(), ipe::Image::draw(), ipe::Painter::rect(), ipe::Shape::Shape(), ipe::Image::snapCtl(), ipe::CanvasBase::snapToPaperAndFrame(), and ipe::TransformTool::TransformTool().
- -
-
|
- -inline | -
Return top left corner.
- -Referenced by ipe::Image::addToBBox(), ipe::Image::distance(), ipe::Painter::rect(), ipe::Thumbnail::render(), ipe::Thumbnail::saveRender(), ipe::Shape::Shape(), ipe::Image::snapCtl(), and ipe::CanvasBase::snapToPaperAndFrame().
- -
-
|
- -inline | -
Return bottom right corner.
- -Referenced by ipe::Image::addToBBox(), ipe::Image::distance(), ipe::Painter::rect(), ipe::Shape::Shape(), ipe::Image::snapCtl(), and ipe::CanvasBase::snapToPaperAndFrame().
- -
-
|
- -inline | -
Return center of rectangle.
- -Referenced by ipe::Group::draw().
- -
-
|
- -inline | -
Return width.
- -Referenced by ipe::Image::draw(), ipe::Group::draw(), ipe::PdfViewBase::drawPaper(), ipe::PdfThumbnail::PdfThumbnail(), ipe::PdfThumbnail::render(), ipe::Thumbnail::saveRender(), ipe::Text::setXForm(), and ipe::Thumbnail::Thumbnail().
- -
-
|
- -inline | -
Return height.
- -Referenced by ipe::Image::draw(), ipe::Group::draw(), ipe::PdfViewBase::drawPaper(), ipe::PdfThumbnail::PdfThumbnail(), ipe::Thumbnail::saveRender(), ipe::Text::setXForm(), and ipe::Thumbnail::Thumbnail().
- -void Rect::addPoint | -( | -const Vector & | -rhs | ) | -- |
Enlarge rectangle to contain point.
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Image::addToBBox(), ipe::Reference::addToBBox(), ipe::Text::addToBBox(), ipe::CurveSegment::addToBBox(), ipe::ClosedSpline::addToBBox(), ipe::Bezier::bbox(), ipe::Arc::bbox(), ipe::Latex::createLatexSource(), ipe::Image::distance(), ipe::Bezier::distance(), ipe::BBoxPainter::doCurveTo(), ipe::BBoxPainter::doDrawBitmap(), ipe::BBoxPainter::doDrawPath(), ipe::BBoxPainter::doDrawText(), ipe::BBoxPainter::doLineTo(), ipe::BBoxPainter::doMoveTo(), ipe::Image::Image(), ipe::Arc::intersect(), ipe::PdfFile::mediaBox(), and ipe::Bezier::snap().
- -void Rect::addRect | -( | -const Rect & | -rhs | ) | -- |
Enlarge rectangle to contain rhs rectangle.
-Does nothing if rhs is empty.
- -References isEmpty(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::CurveSegment::addToBBox(), ipe::Group::addToBBox(), ipe::Ellipse::addToBBox(), ipe::ClosedSpline::addToBBox(), ipe::BBoxPainter::doDrawBitmap(), ipe::BBoxPainter::doDrawText(), and ipe::TransformTool::TransformTool().
- -void Rect::clipTo | -( | -const Rect & | -cbox | ) | -- |
Clip rectangle to fit inside cbox.
-Does nothing if either rectangle is empty.
- -References isEmpty(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Group::addToBBox(), ipe::BBoxPainter::doDrawBitmap(), ipe::BBoxPainter::doDrawPath(), and ipe::BBoxPainter::doDrawText().
- -bool Rect::contains | -( | -const Vector & | -rhs | ) | -const | -
Does (closed) rectangle contain the point?
- -References ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::SelectTool::mouseButton().
- -bool Rect::contains | -( | -const Rect & | -rhs | ) | -const | -
Does rectangle contain other rectangle?
- -References isEmpty(), ipe::Vector::x, and ipe::Vector::y.
- -bool Rect::certainClearance | -( | -const Vector & | -v, | -
- | - | double | -bound | -
- | ) | -const | -
Returns false if the distance between the box and v is smaller than bound. Often returns true if their distance is larger than bound.
- -References bottomLeft(), topRight(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Image::distance(), ipe::Bezier::distance(), and ipe::Bezier::snap().
- -bool Rect::intersects | -( | -const Rect & | -rhs | ) | -const | -
Does rectangle intersect other rectangle?
- -References isEmpty(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::SelectTool::mouseButton(), and ipe::Bezier::snap().
- -
-
|
- -related | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Rect, including all inherited members.
-addPoint(const Vector &rhs) | ipe::Rect | |
addRect(const Rect &rhs) | ipe::Rect | |
bottom() const | ipe::Rect | inline |
bottomLeft() const | ipe::Rect | inline |
bottomRight() const | ipe::Rect | inline |
center() const | ipe::Rect | inline |
certainClearance(const Vector &v, double bound) const | ipe::Rect | |
clear() | ipe::Rect | inline |
clipTo(const Rect &rhs) | ipe::Rect | |
contains(const Vector &rhs) const | ipe::Rect | |
contains(const Rect &rhs) const | ipe::Rect | |
height() const | ipe::Rect | inline |
intersects(const Rect &rhs) const | ipe::Rect | |
isEmpty() const | ipe::Rect | inline |
left() const | ipe::Rect | inline |
operator<<(Stream &stream, const Rect &rhs) | ipe::Rect | related |
Rect() | ipe::Rect | inlineexplicit |
Rect(const Vector &c) | ipe::Rect | inlineexplicit |
Rect(const Vector &c1, const Vector &c2) | ipe::Rect | explicit |
right() const | ipe::Rect | inline |
top() const | ipe::Rect | inline |
topLeft() const | ipe::Rect | inline |
topRight() const | ipe::Rect | inline |
width() const | ipe::Rect | inline |
- Ipelib
-
- |
-
#include <ipereference.h>
Inherits ipe::Object.
--Public Types | |
enum | { - EHasStroke = 0x001, -EHasFill = 0x002, -EHasPen = 0x004, -EHasSize = 0x008, - - EIsMark = 0x010, -EIsArrow = 0x020 - - } |
Public Types inherited from ipe::Object | |
enum | Type { - EGroup, -EPath, -EText, -EImage, - - EReference - - } |
-Public Member Functions | |
Reference (const AllAttributes &attr, Attribute name, Vector pos) | |
Reference (const XmlAttributes &attr, String data) | |
virtual Object * | clone () const |
virtual Reference * | asReference () |
virtual Type | type () const |
virtual void | accept (Visitor &visitor) const |
virtual void | saveAsXml (Stream &stream, String layer) const |
virtual void | draw (Painter &painter) const |
virtual void | drawSimple (Painter &painter) const |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | checkStyle (const Cascade *sheet, AttributeSeq &seq) const |
void | setName (Attribute name) |
Attribute | name () const |
void | setStroke (Attribute color) |
Attribute | stroke () const |
void | setFill (Attribute color) |
Attribute | fill () const |
Attribute | pen () const |
void | setPen (Attribute pen) |
void | setSize (Attribute size) |
Attribute | size () const |
Vector | position () const |
virtual bool | setAttribute (Property prop, Attribute value) |
virtual Attribute | getAttribute (Property prop) const noexcept |
uint32_t | flags () const |
Public Member Functions inherited from ipe::Object | |
virtual | ~Object ()=0 |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Text * | asText () |
virtual Path * | asPath () |
virtual Image * | asImage () |
virtual TPinned | pinned () const |
void | setPinned (TPinned pin) |
TTransformations | transformations () const |
void | setTransformations (TTransformations trans) |
virtual void | setMatrix (const Matrix &matrix) |
const Matrix & | matrix () const |
virtual void | snapCtl (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
-Static Public Member Functions | |
static uint32_t | flagsFromName (String name) |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::Object | |
Object () | |
Object (const AllAttributes &attr) | |
Object (const Object &rhs) | |
Object (const XmlAttributes &attr) | |
void | saveAttributesAsXml (Stream &stream, String layer) const |
Static Protected Member Functions inherited from ipe::Object | |
static void | checkSymbol (Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) |
Protected Attributes inherited from ipe::Object | |
Matrix | iMatrix |
TPinned | iPinned: 8 |
TTransformations | iTransformations: 8 |
The reference object.
-A Reference uses a symbol, that is, an object defined in an Ipe StyleSheet. The object is defined as a named symbol in the style sheet, and can be reused arbitrarily often in the document. This can, for instance, be used for backgrounds on multi-page documents.
-It is admissible to refer to an undefined object (that is, the current style sheet cascade does not define a symbol with the given name). Nothing will be drawn in this case.
-The Reference has a stroke, fill, and pen attribute. When drawing a symbol, these attributes are made available to the symbol through the names "sym-stroke", "sym-fill", and "sym-pen". These are not defined by the style sheet, but resolved by the Painter when the symbol sets its attributes.
-Note that it is not possible to determine whether a symbol is filled from the Reference object.
-The size attribute is of type ESymbolSize, and indicates a magnification factor applied to the symbol. This magnification is applied after the untransformation indicated in the Reference and in the Symbol has been performed, so that symbols are magnified even if they specify ETransformationsTranslations.
-The size is meant for symbols such as marks, that can be shown in different sizes. Another application of symbols is for backgrounds and logos. Their size should not be changed when the user changes the symbolsize for the entire page. For such symbols, the size attribute of the Reference should be set to the absolute value zero. This means that no magnification is applied to the object, and it also stops setAttribute() from modifying the size. (The size can still be changed using setSize(), but this is not available from Lua.)
-anonymous enum | -
-
|
- -explicit | -
Create a reference to the named object in stylesheet.
- -Referenced by clone().
- -
-
|
- -explicit | -
Create from XML stream.
- -References ipe::Attribute::BLACK(), flagsFromName(), ipe::XmlAttributes::has(), ipe::Attribute::makeColor(), ipe::Attribute::makeScalar(), ipe::Attribute::NORMAL(), ipe::Attribute::ONE(), ipe::Attribute::WHITE(), ipe::Vector::x, ipe::Vector::y, and ipe::Vector::ZERO.
- -
-
|
- -virtual | -
-
|
- -virtual | -
Return pointer to this object.
- -Reimplemented from ipe::Object.
- -
-
|
- -virtual | -
Implements ipe::Object.
- -References ipe::Object::EReference.
- -
-
|
- -virtual | -
Call visitReference of visitor.
- -Implements ipe::Object.
- -References ipe::Visitor::visitReference().
- -
-
|
- -virtual | -
Save in XML format.
- -Implements ipe::Object.
- -References ipe::Attribute::BLACK(), EHasFill, ipe::Attribute::isNormal(), ipe::Attribute::ONE(), ipe::Object::saveAttributesAsXml(), ipe::Attribute::string(), ipe::Attribute::WHITE(), and ipe::Vector::ZERO.
- -
-
|
- -virtual | -
Draw reference.
-If the symbolic attribute is not defined in the current style sheet, nothing is drawn at all.
- -Implements ipe::Object.
- -References ipe::Painter::cascade(), ipe::Painter::drawSymbol(), EHasFill, ipe::ESymbolSize, ipe::Cascade::findSymbol(), ipe::Symbol::iSnap, ipe::Symbol::iTransformations, ipe::Painter::lookup(), ipe::Object::matrix(), ipe::Attribute::number(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Painter::setSymFill(), ipe::Painter::setSymPen(), ipe::Painter::setSymStroke(), ipe::Fixed::toDouble(), ipe::Painter::transform(), ipe::Object::transformations(), ipe::Painter::translate(), and ipe::Painter::untransform().
- -
-
|
- -virtual | -
Draw simple version for selecting and transforming.
- -Implements ipe::Object.
- -References ipe::Painter::cascade(), ipe::Painter::drawPath(), ipe::Object::drawSimple(), ipe::EStrokedOnly, ipe::ESymbolSize, ipe::ETransformationsTranslations, ipe::Cascade::find(), ipe::Cascade::findSymbol(), ipe::Symbol::iObject, ipe::Symbol::iTransformations, ipe::Painter::lineTo(), ipe::Object::matrix(), ipe::Painter::moveTo(), ipe::Painter::newPath(), ipe::Attribute::number(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), size(), ipe::Fixed::toDouble(), ipe::Painter::transform(), ipe::Painter::translate(), and ipe::Painter::untransform().
- -
-
|
- -virtual | -
Extend box to include the object transformed by m.
-For objects in a page, don't call this directly. The Page caches the bounding box of each object, so it is far more efficient to call Page::bbox.
-Control points that lie outside the visual object are included if cp is true.
-If called with an empty box and cp == false
, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
This only adds the position (or the snap positions) to the box.
- -Implements ipe::Object.
- -References ipe::Rect::addPoint(), and ipe::Object::matrix().
- -
-
|
- -virtual | -
Return distance of transformed object to point v. If larger than bound, can just return bound.
- -Implements ipe::Object.
- -References ipe::Object::matrix().
- -
-
|
- -virtual | -
Compute vertex snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References ipe::Object::matrix().
- -
-
|
- -virtual | -
Compute boundary snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -
-
|
- -virtual | -
Check all symbolic attributes.
- -Reimplemented from ipe::Object.
- -References ipe::Object::checkSymbol(), ipe::EColor, EHasFill, ipe::EPen, ipe::ESymbolSize, ipe::Cascade::findSymbol(), and ipe::Symbol::iSnap.
- -void Reference::setName | -( | -Attribute | -name | ) | -- |
Set name of symbol referenced.
- -References flagsFromName(), name(), and ipe::Attribute::string().
- -Referenced by setAttribute().
- -
-
|
- -inline | -
Return symbolic name.
- -References setStroke().
- -Referenced by flags(), getAttribute(), setAttribute(), and setName().
- -void Reference::setStroke | -( | -Attribute | -color | ) | -- |
Set stroke color.
- -Referenced by name(), and setAttribute().
- -
-
|
- -inline | -
Return stroke color.
- -References setFill().
- -Referenced by getAttribute(), and setAttribute().
- -void Reference::setFill | -( | -Attribute | -color | ) | -- |
Set fill color.
- -Referenced by setAttribute(), and stroke().
- -
-
|
- -inline | -
Return fill color.
- -Referenced by getAttribute(), and setAttribute().
- -
-
|
- -inline | -
Return pen.
- -References setPen(), setSize(), and size().
- -Referenced by getAttribute(), setAttribute(), and setPen().
- -void Reference::setPen | -( | -Attribute | -pen | ) | -- |
void Reference::setSize | -( | -Attribute | -size | ) | -- |
Set size (magnification) of symbol.
- -References size().
- -Referenced by pen(), and setAttribute().
- -
-
|
- -inline | -
Return symbol size.
- -Referenced by drawSimple(), getAttribute(), pen(), setAttribute(), and setSize().
- -
-
|
- -inline | -
Return position of symbol on page.
- -References getAttribute(), and setAttribute().
- -
-
|
- -virtual | -
Set an attribute on this object.
-Returns true if an attribute was actually changed.
- -Reimplemented from ipe::Object.
- -References EHasFill, EIsMark, ipe::EPropFillColor, ipe::EPropMarkShape, ipe::EPropPen, ipe::EPropStrokeColor, ipe::EPropSymbolSize, fill(), name(), pen(), ipe::Object::setAttribute(), setFill(), setName(), setPen(), setSize(), setStroke(), size(), and stroke().
- -Referenced by position().
- -
-
|
- -virtualnoexcept | -
Get setting of an attribute of this object.
-If object does not have this attribute, returnes "undefined" attribute.
- -Reimplemented from ipe::Object.
- -References EHasFill, EIsMark, ipe::EPropFillColor, ipe::EPropMarkShape, ipe::EPropPen, ipe::EPropStrokeColor, ipe::EPropSymbolSize, fill(), ipe::Object::getAttribute(), name(), pen(), size(), and stroke().
- -Referenced by position().
- -
-
|
- -inline | -
References flagsFromName(), and name().
- -Referenced by flagsFromName().
- -
-
|
- -static | -
References EHasFill, EIsArrow, EIsMark, ipe::String::find(), flags(), ipe::String::left(), ipe::String::rfind(), ipe::String::size(), and ipe::String::substr().
- -Referenced by flags(), ipe::ImlParser::parseStyle(), Reference(), and setName().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Reference, including all inherited members.
-accept(Visitor &visitor) const | ipe::Reference | virtual |
addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::Reference | virtual |
asGroup() | ipe::Object | virtual |
asGroup() const | ipe::Object | virtual |
asImage() | ipe::Object | virtual |
asPath() | ipe::Object | virtual |
asReference() | ipe::Reference | virtual |
asText() | ipe::Object | virtual |
checkStyle(const Cascade *sheet, AttributeSeq &seq) const | ipe::Reference | virtual |
checkSymbol(Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) | ipe::Object | protectedstatic |
clone() const | ipe::Reference | virtual |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::Reference | virtual |
draw(Painter &painter) const | ipe::Reference | virtual |
drawSimple(Painter &painter) const | ipe::Reference | virtual |
EGroup enum value | ipe::Object | |
EHasFill enum value | ipe::Reference | |
EHasPen enum value | ipe::Reference | |
EHasSize enum value | ipe::Reference | |
EHasStroke enum value | ipe::Reference | |
EImage enum value | ipe::Object | |
EIsArrow enum value | ipe::Reference | |
EIsMark enum value | ipe::Reference | |
EPath enum value | ipe::Object | |
EReference enum value | ipe::Object | |
EText enum value | ipe::Object | |
fill() const | ipe::Reference | inline |
flags() const | ipe::Reference | inline |
flagsFromName(String name) | ipe::Reference | static |
getAttribute(Property prop) const noexcept | ipe::Reference | virtual |
iMatrix | ipe::Object | protected |
iPinned | ipe::Object | protected |
iTransformations | ipe::Object | protected |
matrix() const | ipe::Object | inline |
name() const | ipe::Reference | inline |
Object() | ipe::Object | explicitprotected |
Object(const AllAttributes &attr) | ipe::Object | explicitprotected |
Object(const Object &rhs) | ipe::Object | protected |
Object(const XmlAttributes &attr) | ipe::Object | explicitprotected |
pen() const | ipe::Reference | inline |
pinned() const | ipe::Object | virtual |
position() const | ipe::Reference | inline |
Reference(const AllAttributes &attr, Attribute name, Vector pos) | ipe::Reference | explicit |
Reference(const XmlAttributes &attr, String data) | ipe::Reference | explicit |
saveAsXml(Stream &stream, String layer) const | ipe::Reference | virtual |
saveAttributesAsXml(Stream &stream, String layer) const | ipe::Object | protected |
setAttribute(Property prop, Attribute value) | ipe::Reference | virtual |
setFill(Attribute color) | ipe::Reference | |
setMatrix(const Matrix &matrix) | ipe::Object | virtual |
setName(Attribute name) | ipe::Reference | |
setPen(Attribute pen) | ipe::Reference | |
setPinned(TPinned pin) | ipe::Object | |
setSize(Attribute size) | ipe::Reference | |
setStroke(Attribute color) | ipe::Reference | |
setTransformations(TTransformations trans) | ipe::Object | |
size() const | ipe::Reference | inline |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Reference | virtual |
snapCtl(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Reference | virtual |
stroke() const | ipe::Reference | inline |
transformations() const | ipe::Object | inline |
Type enum name | ipe::Object | |
type() const | ipe::Reference | virtual |
~Object()=0 | ipe::Object | pure virtual |
- Ipelib
-
- |
-
#include <ipeattributes.h>
-Public Member Functions | |
String | toString (int index) const |
int | toIndex (String str) |
-Static Public Member Functions | |
static Repository * | get () |
static void | cleanup () |
Repository of strings.
-Ipe documents can use symbolic attributes, such as 'normal', 'fat', or 'thin' for line thickness, or 'red', 'navy', 'turquoise' for color, as well as absolute attributes such as "[3 1] 0" for a dash pattern. To avoid storing these common strings hundreds of times, Repository keeps a repository of strings. Inside an Object, strings are replaced by indices into the repository.
-The Repository is a singleton object. It is created the first time it is used. You obtain access to the repository using get().
-
-
|
- -static | -
Get pointer to singleton Repository.
- -Referenced by ipe::Attribute::Attribute(), ipe::StyleSheet::saveAsXml(), and ipe::Attribute::string().
- -
-
|
- -static | -
Destroy repository object.
- -Referenced by ipe::Platform::libVersion().
- -String Repository::toString | -( | -int | -index | ) | -const | -
Return string with given index.
- -Referenced by ipe::StyleSheet::saveAsXml(), and ipe::Attribute::string().
- -int Repository::toIndex | -( | -String | -str | ) | -- |
Return index of given string.
-The string is added to the repository if it doesn't exist yet.
- -References ipe::String::empty().
- -Referenced by ipe::Attribute::Attribute().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Repository, including all inherited members.
-cleanup() | ipe::Repository | static |
get() | ipe::Repository | static |
toIndex(String str) | ipe::Repository | |
toString(int index) const | ipe::Repository |
- Ipelib
-
- |
-
#include <ipedoc.h>
-Public Types | |
enum | { - SaveNormal = 0, -Export = 1, -NoZip = 2, -MarkedView = 4, - - KeepNotes = 8 - - } |
Flags for saving Ipe documents (to PDF)
-anonymous enum | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::SaveFlag, including all inherited members.
-Export enum value | ipe::SaveFlag | |
KeepNotes enum value | ipe::SaveFlag | |
MarkedView enum value | ipe::SaveFlag | |
NoZip enum value | ipe::SaveFlag | |
SaveNormal enum value | ipe::SaveFlag |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Segment () | |
Segment (const Vector &p, const Vector &q) | |
Line | line () const |
double | distance (const Vector &v, double bound) const |
double | distance (const Vector &v) const |
bool | project (const Vector &v, Vector &projection) const |
bool | intersects (const Segment &seg, Vector &pt) const |
bool | intersects (const Line &l, Vector &pt) const |
bool | snap (const Vector &mouse, Vector &pos, double &bound) const |
-Public Attributes | |
Vector | iP |
Vector | iQ |
A directed line segment.
-
-
|
- -inline | -
Create uninitialized segment.
- -
-
|
- -inlineexplicit | -
-
|
- -inline | -
Return directed line supporting the segment.
- -Referenced by ipe::Arc::intersect(), intersects(), and ipe::Snap::setEdge().
- -double Segment::distance | -( | -const Vector & | -v, | -
- | - | double | -bound | -
- | ) | -const | -
Returns distance between segment and point v, but may just return bound when its larger than bound.
- -Referenced by ipe::CurveSegment::distance().
- -double Segment::distance | -( | -const Vector & | -v | ) | -const | -
Returns distance between segment and point v
- -References ipe::Vector::factorize().
- -bool Segment::project | -( | -const Vector & | -v, | -
- | - | Vector & | -projection | -
- | ) | -const | -
Project point v orthogonally on segment. Returns false if the point falls outside the segment.
- -References ipe::Vector::factorize().
- -Referenced by ipe::Bezier::snap().
- -bool Segment::intersects | -( | -const Segment & | -seg, | -
- | - | Vector & | -pt | -
- | ) | -const | -
Compute intersection point. Return false
if segs don't intersect.
References iP, iQ, and line().
- -Referenced by ipe::Bezier::intersect(), and ipe::Bezier::snap().
- -bool Segment::intersects | -( | -const Line & | -l, | -
- | - | Vector & | -pt | -
- | ) | -const | -
Compute intersection point. Return false
if no intersection.
bool Segment::snap | -( | -const Vector & | -mouse, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Snap mouse position to this segment.
-If distance between mouse and the segment is less than bound, then set pos to the point on the segment, bound to the distance, and return true.
- -References ipe::Linear::Linear(), and ipe::Vector::snap().
- -Referenced by ipe::CurveSegment::snapBnd().
- -Vector ipe::Segment::iP | -
First endpoint.
- -Referenced by ipe::Bezier::intersect(), ipe::Arc::intersect(), intersects(), ipe::Snap::setEdge(), and ipe::Shape::Shape().
- -Vector ipe::Segment::iQ | -
Second endpoint.
- -Referenced by ipe::Bezier::intersect(), ipe::Arc::intersect(), intersects(), ipe::Snap::setEdge(), and ipe::Shape::Shape().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Segment, including all inherited members.
-distance(const Vector &v, double bound) const | ipe::Segment | |
distance(const Vector &v) const | ipe::Segment | |
intersects(const Segment &seg, Vector &pt) const | ipe::Segment | |
intersects(const Line &l, Vector &pt) const | ipe::Segment | |
iP | ipe::Segment | |
iQ | ipe::Segment | |
line() const | ipe::Segment | inline |
project(const Vector &v, Vector &projection) const | ipe::Segment | |
Segment() | ipe::Segment | inline |
Segment(const Vector &p, const Vector &q) | ipe::Segment | inlineexplicit |
snap(const Vector &mouse, Vector &pos, double &bound) const | ipe::Segment |
- Ipelib
-
- |
-
#include <ipetool.h>
Inherits ipe::Tool.
--Classes | |
struct | SObj |
-Public Member Functions | |
SelectTool (CanvasBase *canvas, Page *page, int view, double selectDistance, bool nonDestructive) | |
virtual void | draw (Painter &painter) const |
virtual void | mouseButton (int button, bool press) |
virtual void | mouseMove () |
virtual bool | key (String text, int modifiers) |
Public Member Functions inherited from ipe::Tool | |
virtual | ~Tool () |
virtual void | snapVtx (const Vector &mouse, Vector &pos, double &bound, bool cp) const |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::Tool | |
Tool (CanvasBase *canvas) | |
Protected Attributes inherited from ipe::Tool | |
CanvasBase * | iCanvas |
A tool for selecting objects.
-SelectTool::SelectTool | -( | -CanvasBase * | -canvas, | -
- | - | Page * | -page, | -
- | - | int | -view, | -
- | - | double | -selectDistance, | -
- | - | bool | -nonDestructive | -
- | ) | -- |
Constructor starts selection.
- -References ipe::Page::count(), ipe::SelectTool::SObj::distance, ipe::Page::distance(), ipe::CanvasBase::ECrossCursor, ipe::Tool::iCanvas, ipe::SelectTool::SObj::index, ipe::Page::isLocked(), ipe::Page::layerOf(), ipe::Page::objectVisible(), ipe::CanvasBase::setCursor(), ipe::CanvasBase::unsnappedPos(), and ipe::CanvasBase::zoom().
- -
-
|
- -virtual | -
Implements ipe::Tool.
- -References ipe::Painter::closePath(), ipe::Painter::drawArc(), ipe::Painter::drawPath(), ipe::Object::drawSimple(), ipe::EStrokedOnly, ipe::Tool::iCanvas, ipe::Painter::newPath(), ipe::Page::object(), ipe::Painter::rect(), ipe::Painter::setStroke(), ipe::Vector::x, ipe::Vector::y, and ipe::CanvasBase::zoom().
- -
-
|
- -virtual | -
Called when a mouse button is pressed or released on the canvas.
-button is 1, 2, or 3, with Shift/Ctrl/Alt/Meta modifiers added in (as defined in CanvasBase::TModifiers. press is true for button-down, and false for button-up.
- -Reimplemented from ipe::Tool.
- -References ipe::Object::addToBBox(), ipe::Rect::contains(), ipe::Page::count(), ipe::Page::deselectAll(), ipe::ENotSelected, ipe::Page::ensurePrimarySelection(), ipe::EPrimarySelected, ipe::ESecondarySelected, ipe::CanvasBase::finishTool(), ipe::Page::hasSelection(), ipe::Tool::iCanvas, ipe::Rect::intersects(), ipe::Page::isLocked(), ipe::Page::layerOf(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Page::primarySelection(), ipe::Page::select(), ipe::Page::setSelect(), and ipe::Vector::x.
- -
-
|
- -virtual | -
Called when the mouse is moved on the canvas.
- -Reimplemented from ipe::Tool.
- -References ipe::Tool::iCanvas, ipe::CanvasBase::unsnappedPos(), and ipe::CanvasBase::updateTool().
- -
-
|
- -virtual | -
Called when a key is pressed.
-modifiers are as defined in CanvasBase::TModifiers.
- -Reimplemented from ipe::Tool.
- -References ipe::CanvasBase::finishTool(), ipe::Tool::iCanvas, and ipe::CanvasBase::updateTool().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::SelectTool, including all inherited members.
-draw(Painter &painter) const | ipe::SelectTool | virtual |
iCanvas | ipe::Tool | protected |
key(String text, int modifiers) | ipe::SelectTool | virtual |
mouseButton(int button, bool press) | ipe::SelectTool | virtual |
mouseMove() | ipe::SelectTool | virtual |
SelectTool(CanvasBase *canvas, Page *page, int view, double selectDistance, bool nonDestructive) | ipe::SelectTool | |
snapVtx(const Vector &mouse, Vector &pos, double &bound, bool cp) const | ipe::Tool | virtual |
Tool(CanvasBase *canvas) | ipe::Tool | protected |
~Tool() | ipe::Tool | virtual |
- Ipelib
-
- |
-
#include <ipeshape.h>
-Public Member Functions | |
Shape () | |
Shape (const Rect &rect) | |
Shape (const Segment &seg) | |
Shape (const Vector ¢er, double radius) | |
Shape (const Vector ¢er, double radius, double alpha0, double alpha1) | |
~Shape () | |
Shape (const Shape &rhs) | |
Shape & | operator= (const Shape &rhs) |
bool | load (String data) |
void | save (Stream &stream) const |
void | addToBBox (Rect &box, const Matrix &m, bool cp) const |
double | distance (const Vector &v, const Matrix &m, double bound) const |
void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const |
void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
int | countSubPaths () const |
const SubPath * | subPath (int i) const |
bool | isSegment () const |
void | appendSubPath (SubPath *sp) |
void | draw (Painter &painter) const |
A geometric shape, consisting of several (open or closed) subpaths.
-This class represents vector graphics geometry following the PDF "path", but is actually a bit more complicated since we add new subtypes: arcs, parabolas, uniform B-splines (in PDF, all of these are converted to cubic Bezier splines).
-A Shape consists of a set of subpaths (SubPath), each of which is either open or closed, and which are rendered by stroking and filling as a whole. The distinction between open and closed is meaningful for stroking only, for filling any open subpath is implicitely closed. Stroking a set of subpaths is identical to stroking them individually. This is not true for filling: using several subpaths, one can construct objects with holes, and more complicated pattern.
-A subpath is either an Ellipse (a complete, closed ellipse), a ClosedSpline (a closed uniform B-spline curve), or a Curve. A curve consists of a sequence of segments. Segments are either straight, a quadratic Bezier spline, a cubic Bezier spline, an elliptic arc, or a uniform cubic B-spline.
-Shape is implemented using reference counting and can be copied and passed by value efficiently. The only mutator methods are appendSubPath() and load(), which can only be called during construction of the Shape (that is, before its implementation has been shared).
-Shape::Shape | -( | -) | -- |
Construct an empty shape (zero subpaths).
- -Referenced by ipe::ClosedSpline::snapBnd().
- -
-
|
- -explicit | -
Convenience function: create a rectangle shape.
- -References ipe::Curve::appendSegment(), ipe::Rect::bottomLeft(), ipe::Rect::bottomRight(), ipe::Curve::setClosed(), ipe::Rect::topLeft(), and ipe::Rect::topRight().
- -
-
|
- -explicit | -
Convenience function: create a single line segment.
- -References ipe::Curve::appendSegment(), ipe::Segment::iP, and ipe::Segment::iQ.
- -
-
|
- -explicit | -
Convenience function: create circle with center and radius.
- -References ipe::Ellipse::Ellipse(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -explicit | -
Convenience function: create circular arc.
-If alpha1 is larger than alpha0, the arc is oriented positively, otherwise negatively.
- -References ipe::Curve::appendArc(), ipe::Vector::x, and ipe::Vector::y.
- -Shape::~Shape | -( | -) | -- |
Destructor (takes care of reference counting).
- -Shape::Shape | -( | -const Shape & | -rhs | ) | -- |
Copy constructor (constant time).
- -Assignment operator (constant-time).
- -bool Shape::load | -( | -String | -data | ) | -- |
Create a Shape from XML data.
-Appends subpaths from XML data to the current Shape. Returns false if the path syntax is incorrect (the Shape will be in an inconsistent state and must be discarded).
-This method can only be used during construction of the Shape. It will panic if the implementation has been shared.
- -References ipe::Curve::appendArc(), ipe::Curve::appendCardinalSpline(), ipe::Curve::appendOldSpline(), ipe::Curve::appendSegment(), ipe::Curve::appendSpiroSpline(), ipe::Curve::appendSpiroSplinePrecomputed(), ipe::Curve::appendSpline(), ipe::SubPath::asCurve(), ipe::Matrix::determinant(), ipe::Ellipse::Ellipse(), ipe::Lex::eos(), ipe::Lex::nextToken(), ipe::Curve::setClosed(), ipe::Lex::skipWhitespace(), ipe::Lex::token(), and ipe::Ellipse::type().
- -Referenced by ipe::Group::Group().
- -void Shape::save | -( | -Stream & | -stream | ) | -const | -
Save Shape onto XML stream.
- -Referenced by ipe::Group::saveAsXml(), and ipe::Path::saveAsXml().
- -void Shape::addToBBox | -( | -Rect & | -box, | -
- | - | const Matrix & | -m, | -
- | - | bool | -cp | -
- | ) | -const | -
Add shape (transformed by m) to box.
- -Referenced by ipe::Path::addToBBox().
- -double Shape::distance | -( | -const Vector & | -v, | -
- | - | const Matrix & | -m, | -
- | - | double | -bound | -
- | ) | -const | -
Referenced by ipe::Path::distance().
- -void Shape::snapVtx | -( | -const Vector & | -mouse, | -
- | - | const Matrix & | -m, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound, | -
- | - | bool | -cp | -
- | ) | -const | -
Referenced by ipe::Path::snapCtl(), and ipe::Path::snapVtx().
- -void Shape::snapBnd | -( | -const Vector & | -mouse, | -
- | - | const Matrix & | -m, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Referenced by ipe::Path::snapBnd().
- -
-
|
- -inline | -
Return number of subpaths.
- -Referenced by ipe::Path::clone(), ipe::Group::Group(), and ipe::Group::saveAsXml().
- -
-
|
- -inline | -
Return subpath.
- -References ipe::CurveSegment::draw().
- -Referenced by ipe::Path::clone(), and ipe::Path::draw().
- -bool Shape::isSegment | -( | -) | -const | -
Is this Shape a single straight segment?
- -References ipe::SubPath::asCurve(), ipe::SubPath::closed(), ipe::Curve::countSegments(), ipe::SubPath::ECurve, ipe::CurveSegment::ESegment, ipe::Curve::segment(), ipe::CurveSegment::type(), and ipe::SubPath::type().
- -Referenced by ipe::Path::draw().
- -void Shape::appendSubPath | -( | -SubPath * | -sp | ) | -- |
void Shape::draw | -( | -Painter & | -painter | ) | -const | -
Draw the Shape as a path to painter.
-Does not call newPath() on painter.
- -References ipe::Matrix::a, ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::Path::draw(), and ipe::Path::drawSimple().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Shape, including all inherited members.
-addToBBox(Rect &box, const Matrix &m, bool cp) const | ipe::Shape | |
appendSubPath(SubPath *sp) | ipe::Shape | |
countSubPaths() const | ipe::Shape | inline |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::Shape | |
draw(Painter &painter) const | ipe::Shape | |
isSegment() const | ipe::Shape | |
load(String data) | ipe::Shape | |
operator=(const Shape &rhs) | ipe::Shape | |
save(Stream &stream) const | ipe::Shape | |
Shape() | ipe::Shape | |
Shape(const Rect &rect) | ipe::Shape | explicit |
Shape(const Segment &seg) | ipe::Shape | explicit |
Shape(const Vector ¢er, double radius) | ipe::Shape | explicit |
Shape(const Vector ¢er, double radius, double alpha0, double alpha1) | ipe::Shape | explicit |
Shape(const Shape &rhs) | ipe::Shape | |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Shape | |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const | ipe::Shape | |
subPath(int i) const | ipe::Shape | inline |
~Shape() | ipe::Shape |
- Ipelib
-
- |
-
#include <ipesnap.h>
-Public Types | |
enum | TSnapModes { - ESnapNone = 0, -ESnapVtx = 1, -ESnapCtl = 2, -ESnapBd = 4, - - ESnapInt = 8, -ESnapGrid = 0x10, -ESnapAngle = 0x20, -ESnapAuto = 0x40, - - ESnapCustom = 0x80 - - } |
-Public Member Functions | |
void | intersectionSnap (const Vector &pos, Vector &fifi, const Page *page, int view, double &snapDist) const noexcept |
bool | snapAngularIntersection (Vector &pos, const Line &l, const Page *page, int view, double snapDist) const noexcept |
TSnapModes | simpleSnap (Vector &pos, const Page *page, int view, double snapDist, Tool *tool=nullptr) const noexcept |
TSnapModes | snap (Vector &pos, const Page *page, int view, double snapDist, Tool *tool=nullptr, Vector *autoOrg=nullptr) const noexcept |
Line | getLine (const Vector &mouse, const Vector &base) const noexcept |
bool | setEdge (const Vector &pos, const Page *page, int view) noexcept |
-Public Attributes | |
int | iSnap |
bool | iGridVisible |
int | iGridSize |
double | iAngleSize |
int | iSnapDistance |
bool | iWithAxes |
Vector | iOrigin |
Angle | iDir |
Performs snapping operations, and stores snapping state.
-enum ipe::Snap::TSnapModes | -
-
|
- -noexcept | -
Perform intersection snapping.
- -References ipe::size().
- -
-
|
- -noexcept | -
Perform snapping to intersection of angular line and pos.
- -
-
|
- -noexcept | -
Tries vertex, intersection, boundary, and grid snapping.
-If snapping occurred, pos is set to the new user space position.
- -References ipe::Page::count(), ipe::Page::objSnapsInView(), ipe::Page::snapBnd(), ipe::Page::snapCtl(), ipe::Page::snapVtx(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -noexcept | -
Performs snapping of position pos.
-Returns true
if snapping occurred. In that case pos is set to the new user space position.
Automatic angular snapping occurs if autoOrg is not null — the value is then used as the origin for automatic angular snapping.
- -References ipe::Line::intersects(), ipe::Line::project(), and ipe::Vector::sqLen().
- -
-
|
- -noexcept | -
Find line through base with slope determined by angular snap size and direction.
- -References ipe::Vector::angle(), ipe::Vector::len(), and ipe::Angle::normalize().
- -
-
|
- -noexcept | -
Set axis origin and direction from edge near mouse.
-Returns true
if successful.
References ipe::Vector::angle(), ipe::Line::dir(), ipe::Arc::distance(), ipe::Arc::iM, ipe::Segment::iP, ipe::Segment::iQ, ipe::Segment::line(), ipe::Matrix::linear(), ipe::Line::project(), ipe::Bezier::snap(), and ipe::Bezier::tangent().
- -int ipe::Snap::iSnap | -
Activated snapping modes (TSnapModes)
- -bool ipe::Snap::iGridVisible | -
Is the grid visible?
- -int ipe::Snap::iGridSize | -
Snap grid spacing.
- -double ipe::Snap::iAngleSize | -
Angle for angular snapping.
- -int ipe::Snap::iSnapDistance | -
Snap distance (in pixels).
- -bool ipe::Snap::iWithAxes | -
Show coordinate system?
- -Referenced by ipe::TransformTool::TransformTool().
- -Vector ipe::Snap::iOrigin | -
Origin of coordinate system.
- -Referenced by ipe::TransformTool::TransformTool().
- -Angle ipe::Snap::iDir | -
Direction of x-axis.
- -Referenced by ipe::TransformTool::TransformTool().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Snap, including all inherited members.
-ESnapAngle enum value | ipe::Snap | |
ESnapAuto enum value | ipe::Snap | |
ESnapBd enum value | ipe::Snap | |
ESnapCtl enum value | ipe::Snap | |
ESnapCustom enum value | ipe::Snap | |
ESnapGrid enum value | ipe::Snap | |
ESnapInt enum value | ipe::Snap | |
ESnapNone enum value | ipe::Snap | |
ESnapVtx enum value | ipe::Snap | |
getLine(const Vector &mouse, const Vector &base) const noexcept | ipe::Snap | |
iAngleSize | ipe::Snap | |
iDir | ipe::Snap | |
iGridSize | ipe::Snap | |
iGridVisible | ipe::Snap | |
intersectionSnap(const Vector &pos, Vector &fifi, const Page *page, int view, double &snapDist) const noexcept | ipe::Snap | |
iOrigin | ipe::Snap | |
iSnap | ipe::Snap | |
iSnapDistance | ipe::Snap | |
iWithAxes | ipe::Snap | |
setEdge(const Vector &pos, const Page *page, int view) noexcept | ipe::Snap | |
simpleSnap(Vector &pos, const Page *page, int view, double snapDist, Tool *tool=nullptr) const noexcept | ipe::Snap | |
snap(Vector &pos, const Page *page, int view, double snapDist, Tool *tool=nullptr, Vector *autoOrg=nullptr) const noexcept | ipe::Snap | |
snapAngularIntersection(Vector &pos, const Line &l, const Page *page, int view, double snapDist) const noexcept | ipe::Snap | |
TSnapModes enum name | ipe::Snap |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherited by ipe::A85Stream, ipe::Base64Stream, ipe::DeflateStream, and ipe::TellStream.
--Public Member Functions | |
virtual | ~Stream () |
virtual void | putChar (char ch)=0 |
virtual void | close () |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
Abstract base class for output streams.
-
-
|
- -virtual | -
Virtual destructor.
- -
-
|
- -pure virtual | -
Output character.
- -Implemented in ipe::FileStream, ipe::StringStream, ipe::DeflateStream, ipe::Base64Stream, and ipe::A85Stream.
- -Referenced by ipe::A85Stream::putChar(), ipe::Base64Stream::putChar(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -virtual | -
Close the stream. No more writing allowed!
- -Reimplemented in ipe::DeflateStream, ipe::Base64Stream, and ipe::A85Stream.
- -Referenced by ipe::A85Stream::close(), ipe::Base64Stream::close(), and ipe::DeflateStream::close().
- -
-
|
- -virtual | -
Output string.
-Default implementation uses PutChar.
- -Reimplemented in ipe::FileStream, and ipe::StringStream.
- -References ipe::String::size().
- -
-
|
- -virtual | -
Output C string.
-Default implementation uses PutChar.
- -Reimplemented in ipe::FileStream, and ipe::StringStream.
- -Referenced by ipe::A85Stream::close(), ipe::Base64Stream::close(), ipe::A85Stream::putChar(), and ipe::Base64Stream::putChar().
- -
-
|
- -virtual | -
Output raw character data.
-Default implementation uses PutChar.
- -Reimplemented in ipe::FileStream, and ipe::StringStream.
- -References ipe::String::size().
- -Referenced by ipe::DeflateStream::close(), ipe::DeflateStream::putChar(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -inline | -
Output character.
- -Output string.
- -
-
|
- -inline | -
Output C string.
- -Stream & Stream::operator<< | -( | -int | -i | ) | -- |
Output integer.
- -Stream & Stream::operator<< | -( | -double | -d | ) | -- |
Output double.
- -void Stream::putHexByte | -( | -char | -b | ) | -- |
Output byte in hexadecimal.
- -Referenced by ipe::ipeDebugBuffer().
- -void Stream::putXmlString | -( | -String | -s | ) | -- |
Save a string with XML escaping of &, >, <, ", '.
- -References ipe::String::size(), and ipe::StringStream::StringStream().
- -Referenced by ipe::Page::saveAsXml(), ipe::Text::saveAsXml(), ipe::Group::saveAsXml(), ipe::Document::saveAsXml(), and ipe::StyleSheet::saveAsXml().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Stream, including all inherited members.
-close() | ipe::Stream | virtual |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch)=0 | ipe::Stream | pure virtual |
putCString(const char *s) | ipe::Stream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::Stream | virtual |
putString(String s) | ipe::Stream | virtual |
putXmlString(String s) | ipe::Stream | |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipebase.h>
-Public Member Functions | |
String () noexcept | |
String (const char *str) noexcept | |
String (const char *str, int len) noexcept | |
String (const String &rhs) noexcept | |
String (const String &rhs, int index, int len) noexcept | |
String & | operator= (const String &rhs) noexcept |
~String () noexcept | |
char | operator[] (int i) const noexcept |
bool | empty () const noexcept |
const char * | data () const noexcept |
int | size () const noexcept |
void | operator+= (const String &rhs) noexcept |
void | operator+= (const char *rhs) noexcept |
void | operator+= (char ch) noexcept |
String | substr (int i, int len=-1) const noexcept |
String | left (int i) const noexcept |
String | right (int i) const noexcept |
bool | operator!= (const String &rhs) const noexcept |
bool | operator!= (const char *rhs) const noexcept |
int | find (char ch) const noexcept |
int | rfind (char ch) const noexcept |
int | find (const char *rhs) const noexcept |
void | erase () noexcept |
void | append (const String &rhs) noexcept |
void | append (const char *rhs) noexcept |
void | append (char ch) noexcept |
void | appendUtf8 (uint16_t ch) noexcept |
bool | hasPrefix (const char *rhs) const noexcept |
bool | operator== (const String &rhs) const noexcept |
bool | operator== (const char *rhs) const noexcept |
bool | operator< (const String &rhs) const noexcept |
String | operator+ (const String &rhs) const noexcept |
int | unicode (int &index) const noexcept |
String | getLine (int &index) const noexcept |
const char * | z () const noexcept |
-Static Public Member Functions | |
static String | withData (char *data, int len=0) noexcept |
Strings and buffers.
-String is is an implicitly shared byte string. It is designed to be efficient for strings of arbitrary length, and supposed to be passed by value (the size of String is a single pointer). Sharing is implicit—the string creates its own representation as soon as it is modified.
-String can be used for binary data. For text, it is usually assumed that the string is UTF-8 encoded, but only the unicode member function actually requires this. In particular, all indices into the string are byte indices, not Unicode character indices.
-
-
|
- -noexcept | -
Construct an empty string.
- -Referenced by right(), and ipe::Platform::runLatex().
- -
-
|
- -noexcept | -
Construct a string by making copy of str.
- -
-
|
- -noexcept | -
Construct string by making copy of str with given len.
- -
-
|
- -noexcept | -
Copy constructor. This only copies the reference and takes constant time.
- -
-
|
- -noexcept | -
Construct a substring.
-index must be >= 0. len can be negative or too large to return entire string.
- -
-
|
- -noexcept | -
Destruct string if reference count has reached zero.
- -Assignment takes constant time.
- -
-
|
- -staticnoexcept | -
Construct string by taking ownership of given data.
- -References data().
- -
-
|
- -inlinenoexcept | -
Return character at index i.
- -
-
|
- -inlinenoexcept | -
Is the string empty?
- -References ipe::size().
- -Referenced by ipe::Latex::addPageNumber(), ipe::PdfWriter::createBookmarks(), ipe::Latex::createLatexSource(), ipe::PdfWriter::createNamedDests(), ipe::PdfWriter::createPageView(), ipe::PdfWriter::createTrailer(), ipe::PageSelector::fill(), ipe::Document::findPage(), ipe::Page::findView(), ipe::Platform::libVersion(), ipe::Attribute::makeColor(), ipe::Attribute::makeDashStyle(), ipe::Attribute::makeScalar(), ipe::Attribute::makeTextSize(), ipe::XmlParser::parseAttributes(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parseStyle(), ipe::ImlParser::parseView(), ipe::Document::runLatex(), ipe::Platform::runLatex(), ipe::Page::saveAsXml(), ipe::Group::saveAsXml(), ipe::Object::saveAttributesAsXml(), and ipe::Repository::toIndex().
- -
-
|
- -inlinenoexcept | -
Return read-only pointer to the data.
- -Referenced by ipe::Bitmap::Bitmap(), ipe::PdfWriter::createPageView(), ipe::PdfWriter::createXmlStream(), ipe::PdfPainter::doDrawSymbol(), ipe::Platform::fileExists(), ipe::PdfDict::inflate(), ipe::Platform::libVersion(), ipe::Platform::listDirectory(), ipe::Bitmap::readJpeg(), ipe::Platform::realPath(), withData(), and z().
- -
-
|
- -inlinenoexcept | -
Return number of bytes in the string.
- -Referenced by ipe::Bitmap::Bitmap(), ipe::Buffer::Buffer(), ipe::Latex::createLatexSource(), ipe::PdfWriter::createPageView(), ipe::PdfWriter::createXmlStream(), ipe::PdfPainter::doDrawSymbol(), ipe::CairoPainter::doDrawText(), ipe::CairoPainter::executeStream(), find(), ipe::Reference::flagsFromName(), ipe::Document::formatFromFilename(), ipe::Lex::getFixed(), getLine(), hasPrefix(), ipe::PdfDict::inflate(), ipe::Platform::ipeDrive(), ipe::Platform::latexDirectory(), ipe::Platform::libVersion(), operator<(), operator==(), ipe::XmlParser::parsePCDATA(), ipe::XmlParser::parseToTag(), ipe::Stream::putRaw(), ipe::StringStream::putRaw(), ipe::FileStream::putRaw(), ipe::Stream::putString(), ipe::FileStream::putString(), ipe::Stream::putXmlString(), ipe::Bitmap::readJpeg(), rfind(), right(), ipe::Path::saveAsXml(), ipe::Lex::skipWhitespace(), and ipe::Text::Text().
- -
-
|
- -inlinenoexcept | -
Operator syntax for append.
- -
-
|
- -inlinenoexcept | -
Operator syntax for append.
- -
-
|
- -inlinenoexcept | -
Operator syntax for append.
- -
-
|
- -inlinenoexcept | -
Create substring.
- -Referenced by ipe::Latex::createLatexSource(), ipe::PdfWriter::createPageView(), ipe::Painter::dashStyle(), ipe::Document::fileFormat(), ipe::Reference::flagsFromName(), ipe::Lex::getFixed(), getLine(), ipe::PdfParser::getObject(), ipe::PdfParser::getTrailer(), ipe::Platform::latexDirectory(), ipe::Platform::latexPath(), ipe::Document::runLatex(), ipe::Platform::runLatex(), ipe::Path::saveAsXml(), ipe::StyleSheet::saveAsXml(), and ipe::Text::Text().
- -
-
|
- -inlinenoexcept | -
Create substring at the left.
- -Referenced by ipe::Bitmap::Bitmap(), ipe::PdfWriter::createPageView(), ipe::CairoPainter::doDrawText(), ipe::Reference::flagsFromName(), ipe::Platform::ipeDrive(), ipe::Platform::latexDirectory(), ipe::Platform::latexPath(), ipe::Platform::realPath(), ipe::Platform::runLatex(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -noexcept | -
Create substring at the right.
-Returns the entire string if i is larger than its length.
- -References size(), and String().
- -Referenced by ipe::Bitmap::Bitmap(), ipe::Document::formatFromFilename(), and ipe::Platform::latexDirectory().
- -
-
|
- -inlinenoexcept | -
Operator !=.
- -
-
|
- -inlinenoexcept | -
Operator !=.
- -
-
|
- -noexcept | -
Return index of first occurrence of ch.
-Return -1 if character does not appear.
- -References size().
- -Referenced by ipe::PdfWriter::createTrailer(), ipe::Painter::dashStyle(), ipe::CairoPainter::doDrawText(), ipe::Reference::flagsFromName(), ipe::PdfParser::getTrailer(), ipe::Document::runLatex(), and ipe::StyleSheet::saveAsXml().
- -
-
|
- -noexcept | -
Return index of last occurrence of ch.
-Return -1 if character does not appear.
- -References size().
- -Referenced by ipe::Reference::flagsFromName(), and ipe::Platform::ipeDrive().
- -
-
|
- -noexcept | -
Return index of first occurrence of rhs.
-Return -1 if not substring is not present.
- -References size().
- -
-
|
- -noexcept | -
Make string empty.
- -
-
|
- -noexcept | -
Append rhs to this string.
- -Referenced by appendUtf8(), operator+(), and ipe::Platform::readFile().
- -
-
|
- -noexcept | -
Append rhs to this string.
- -
-
|
- -noexcept | -
Append ch to this string.
- -
-
|
- -noexcept | -
Append a single unicode character ch in UTF-8 encoding.
- -References append().
- -Referenced by ipe::PdfString::decode().
- -
-
|
- -noexcept | -
Does string start with this prefix? (bytewise comparison)
- -References size().
- -Referenced by ipe::Document::runLatex().
- -
-
|
- -noexcept | -
Equality operator (bytewise comparison).
- -References size().
- -
-
|
- -noexcept | -
Equality operator (bytewise comparison).
- -References size().
- -
-
|
- -noexcept | -
Inequality operator (bytewise comparison).
- -References size().
- -Concatenate this string with rhs.
- -References append().
- -
-
|
- -noexcept | -
Return Unicode value from UTF-8 string.
-The index is incremented to the next UTF-8 character. This returns 0xfffd if there is any problem in parsing UTF-8.
- -References ipe::Fixed::fromInternal(), and ipe::Fixed::mult().
- -Referenced by ipe::PdfWriter::createXmlStream().
- -
-
|
- -noexcept | -
Return line starting at position index. Index is updated to point to next line.
- -References size(), and substr().
- -Referenced by ipe::Platform::libVersion().
- -
-
|
- -noexcept | -
Return a C style string with final zero byte.
- -References data().
- -Referenced by ipe::PdfResources::collect(), ipe::CairoPainter::doDrawText(), ipe::CairoPainter::executeStream(), ipe::Face::Face(), ipe::Platform::fileExists(), ipe::Lex::getFixed(), ipe::Lex::getHexNumber(), ipe::Lex::getInt(), ipe::PdfParser::getTrailer(), ipe::Platform::latexDirectory(), ipe::Platform::libVersion(), ipe::Platform::listDirectory(), ipe::QIpe(), ipe::Platform::readFile(), ipe::Platform::realPath(), ipe::Document::runLatex(), ipe::Platform::runLatex(), ipe::PdfResources::show(), ipe::Platform::toDouble(), ipe::Platform::toNumber(), and ipe::Latex::updateTextObjects().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::String, including all inherited members.
-append(const String &rhs) noexcept | ipe::String | |
append(const char *rhs) noexcept | ipe::String | |
append(char ch) noexcept | ipe::String | |
appendUtf8(uint16_t ch) noexcept | ipe::String | |
data() const noexcept | ipe::String | inline |
empty() const noexcept | ipe::String | inline |
erase() noexcept | ipe::String | |
find(char ch) const noexcept | ipe::String | |
find(const char *rhs) const noexcept | ipe::String | |
getLine(int &index) const noexcept | ipe::String | |
hasPrefix(const char *rhs) const noexcept | ipe::String | |
left(int i) const noexcept | ipe::String | inline |
operator!=(const String &rhs) const noexcept | ipe::String | inline |
operator!=(const char *rhs) const noexcept | ipe::String | inline |
operator+(const String &rhs) const noexcept | ipe::String | |
operator+=(const String &rhs) noexcept | ipe::String | inline |
operator+=(const char *rhs) noexcept | ipe::String | inline |
operator+=(char ch) noexcept | ipe::String | inline |
operator<(const String &rhs) const noexcept | ipe::String | |
operator=(const String &rhs) noexcept | ipe::String | |
operator==(const String &rhs) const noexcept | ipe::String | |
operator==(const char *rhs) const noexcept | ipe::String | |
operator[](int i) const noexcept | ipe::String | inline |
rfind(char ch) const noexcept | ipe::String | |
right(int i) const noexcept | ipe::String | |
size() const noexcept | ipe::String | inline |
String() noexcept | ipe::String | |
String(const char *str) noexcept | ipe::String | |
String(const char *str, int len) noexcept | ipe::String | |
String(const String &rhs) noexcept | ipe::String | |
String(const String &rhs, int index, int len) noexcept | ipe::String | |
substr(int i, int len=-1) const noexcept | ipe::String | inline |
unicode(int &index) const noexcept | ipe::String | |
withData(char *data, int len=0) noexcept | ipe::String | static |
z() const noexcept | ipe::String | |
~String() noexcept | ipe::String |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherits ipe::TellStream.
--Public Member Functions | |
StringStream (String &string) | |
virtual void | putChar (char ch) |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
virtual long | tell () const |
Public Member Functions inherited from ipe::Stream | |
virtual | ~Stream () |
virtual void | close () |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
StringStream::StringStream | -( | -String & | -string | ) | -- |
Construct with string reference.
- -Referenced by ipe::Stream::putXmlString().
- -
-
|
- -virtual | -
Output character.
- -Implements ipe::Stream.
- -
-
|
- -virtual | -
-
|
- -virtual | -
-
|
- -virtual | -
Output raw character data.
-Default implementation uses PutChar.
- -Reimplemented from ipe::Stream.
- -References ipe::String::size().
- -
-
|
- -virtual | -
Implements ipe::TellStream.
- -References ipe::FileStream::FileStream().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::StringStream, including all inherited members.
-close() | ipe::Stream | virtual |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch) | ipe::StringStream | virtual |
putCString(const char *s) | ipe::StringStream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::StringStream | virtual |
putString(String s) | ipe::StringStream | virtual |
putXmlString(String s) | ipe::Stream | |
StringStream(String &string) | ipe::StringStream | |
tell() const | ipe::StringStream | virtual |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipestyle.h>
-Classes | |
struct | PageNumberStyle |
struct | TitleStyle |
-Public Member Functions | |
StyleSheet () | |
void | addSymbol (Attribute name, const Symbol &symbol) |
const Symbol * | findSymbol (Attribute sym) const |
void | addGradient (Attribute name, const Gradient &s) |
const Gradient * | findGradient (Attribute sym) const |
void | addTiling (Attribute name, const Tiling &s) |
const Tiling * | findTiling (Attribute sym) const |
void | addEffect (Attribute name, const Effect &e) |
const Effect * | findEffect (Attribute sym) const |
void | add (Kind kind, Attribute name, Attribute value) |
bool | has (Kind kind, Attribute sym) const |
Attribute | find (Kind, Attribute sym) const |
void | remove (Kind kind, Attribute sym) |
void | saveAsXml (Stream &stream, bool saveBitmaps=false) const |
void | allNames (Kind kind, AttributeSeq &seq) const |
bool | isStandard () const |
String | preamble () const |
void | setPreamble (const String &str) |
const Layout * | layout () const |
void | setLayout (const Layout &margins) |
const TextPadding * | textPadding () const |
void | setTextPadding (const TextPadding &pad) |
const TitleStyle * | titleStyle () const |
void | setTitleStyle (const TitleStyle &ts) |
const PageNumberStyle * | pageNumberStyle () const |
void | setPageNumberStyle (const PageNumberStyle &pns) |
void | setLineCap (TLineCap s) |
void | setLineJoin (TLineJoin s) |
void | setFillRule (TFillRule s) |
TLineCap | lineCap () const |
TLineJoin | lineJoin () const |
TFillRule | fillRule () const |
String | name () const |
void | setName (const String &name) |
-Static Public Member Functions | |
static StyleSheet * | standard () |
A style sheet maps symbolic names to absolute values.
-Ipe documents can use symbolic attributes, such as 'normal', 'fat', or 'thin' for line thickness, or 'red', 'navy', 'turquoise' for color. The mapping to an absolute pen thickness or RGB value is performed by a StyleSheet.
-Style sheets are always included when the document is saved, so that an Ipe document is self-contained.
-The built-in standard style sheet is minimal, and only needed to provide sane fallbacks for all the "normal" settings.
-StyleSheet::StyleSheet | -( | -) | -- |
The default constructor creates an empty style sheet.
- -References ipe::EDefaultCap, ipe::EDefaultJoin, and ipe::EDefaultRule.
- -
-
|
- -static | -
Create standard built-in style sheet.
- -References ipe::ImlParser::parseStyleSheet().
- -Referenced by ipe::Document::Document(), and ipe::PdfThumbnail::PdfThumbnail().
- -void StyleSheet::addSymbol | -( | -Attribute | -name, | -
- | - | const Symbol & | -symbol | -
- | ) | -- |
Add a symbol object.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -Referenced by ipe::ImlParser::parseStyle().
- -Find a symbol object with given name.
-If attr is not symbolic or if the symbol doesn't exist, returns 0.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -void StyleSheet::addGradient | -( | -Attribute | -name, | -
- | - | const Gradient & | -s | -
- | ) | -- |
Add gradient to this style sheet.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -Referenced by ipe::ImlParser::parseStyle().
- -Find gradient in style sheet cascade.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -void StyleSheet::addTiling | -( | -Attribute | -name, | -
- | - | const Tiling & | -s | -
- | ) | -- |
Add tiling to this style sheet.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -Referenced by ipe::ImlParser::parseStyle().
- -Find tiling in style sheet cascade.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -void StyleSheet::addEffect | -( | -Attribute | -name, | -
- | - | const Effect & | -e | -
- | ) | -- |
References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -Referenced by ipe::ImlParser::parseStyle().
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -void StyleSheet::add | -( | -Kind | -kind, | -
- | - | Attribute | -name, | -
- | - | Attribute | -value | -
- | ) | -- |
Add an attribute.
-Does nothing if name is not symbolic.
- -References ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -Referenced by ipe::ImlParser::parseStyle().
- -Check whether symbolic attribute is defined.
-This method also works for ESymbol, EGradient, ETiling, and EEffect.
-Returns true if sym is not symbolic.
- -References ipe::EEffect, ipe::EGradient, ipe::ESymbol, ipe::ETiling, ipe::Attribute::index(), and ipe::Attribute::isSymbolic().
- -Attribute StyleSheet::find | -( | -Kind | -kind, | -
- | - | Attribute | -sym | -
- | ) | -const | -
Find a symbolic attribute.
-If sym is not symbolic, returns sym itself. If sym cannot be found, returns the "undefined" attribute. In all other cases, the returned attribute is guaranteed to be absolute.
- -References ipe::Attribute::index(), ipe::Attribute::isSymbolic(), and ipe::Attribute::UNDEFINED().
- -Removes definition for a symbolic attribute from this stylesheet.
-This method also works for ESymbol, EGradient, ETiling, and EEffect. It is okay if the symbolic attribute is not defined in the stylesheet, nothing happens in this case.
- -References ipe::EEffect, ipe::EGradient, ipe::ESymbol, ipe::ETiling, and ipe::Attribute::index().
- -void StyleSheet::saveAsXml | -( | -Stream & | -stream, | -
- | - | bool | -saveBitmaps = false |
-
- | ) | -const | -
Save style sheet in XML format.
- -References ipe::Angle::degrees(), ipe::Gradient::EAxial, ipe::EDefaultCap, ipe::EDefaultJoin, ipe::EDefaultRule, ipe::EEvenOddRule, ipe::ELabelStyle, ipe::ETextStyle, ipe::ETransformationsRigidMotions, ipe::ETransformationsTranslations, ipe::EWindRule, ipe::String::find(), ipe::Repository::get(), ipe::Tiling::iAngle, ipe::BitmapFinder::iBitmaps, ipe::Effect::iDuration, ipe::Effect::iEffect, ipe::Gradient::iExtend, ipe::Gradient::iMatrix, ipe::Gradient::iRadius, ipe::Matrix::isIdentity(), ipe::Tiling::iStep, ipe::Gradient::iStops, ipe::Effect::iTransitionTime, ipe::Gradient::iType, ipe::Gradient::iV, ipe::Tiling::iWidth, ipe::kind_names, ipe::Bitmap::objNum(), ipe::Stream::putXmlString(), ipe::Text::saveAlignment(), ipe::Bitmap::saveAsXml(), ipe::size(), ipe::String::substr(), and ipe::Repository::toString().
- -void StyleSheet::allNames | -( | -Kind | -kind, | -
- | - | AttributeSeq & | -seq | -
- | ) | -const | -
Return all symbolic names in the style sheet cascade.
-Names are simply appended from top to bottom of the cascade. Names are inserted only once.
- -References ipe::EEffect, ipe::EGradient, ipe::ESymbol, and ipe::ETiling.
- -
-
|
- -inline | -
Return whether this is the standard style sheet built into Ipe.
- -
-
|
- -inline | -
Return Latex preamble.
- -
-
|
- -inline | -
Set LaTeX preamble.
- -Referenced by ipe::ImlParser::parseStyle().
- -const Layout * StyleSheet::layout | -( | -) | -const | -
Return page layout (or 0 if none defined).
- -void StyleSheet::setLayout | -( | -const Layout & | -margins | ) | -- |
Set page layout.
- -Referenced by ipe::ImlParser::parseStyle().
- -const TextPadding * StyleSheet::textPadding | -( | -) | -const | -
Return text object padding (for bbox computation).
- -void StyleSheet::setTextPadding | -( | -const TextPadding & | -pad | ) | -- |
Set padding for text object bbox computation.
- -Referenced by ipe::ImlParser::parseStyle().
- -const StyleSheet::TitleStyle * StyleSheet::titleStyle | -( | -) | -const | -
Return title style (or 0 if none defined).
- -void StyleSheet::setTitleStyle | -( | -const TitleStyle & | -ts | ) | -- |
Set style of page titles.
- -Referenced by ipe::ImlParser::parseStyle().
- -const StyleSheet::PageNumberStyle * StyleSheet::pageNumberStyle | -( | -) | -const | -
Return page number style.
- -void StyleSheet::setPageNumberStyle | -( | -const PageNumberStyle & | -pns | ) | -- |
Set style of page numbering.
- -Referenced by ipe::ImlParser::parseStyle().
- -void StyleSheet::setLineCap | -( | -TLineCap | -s | ) | -- |
Set line cap.
- -Referenced by ipe::ImlParser::parseStyle().
- -void StyleSheet::setLineJoin | -( | -TLineJoin | -s | ) | -- |
Set line join.
- -Referenced by ipe::ImlParser::parseStyle().
- -void StyleSheet::setFillRule | -( | -TFillRule | -s | ) | -- |
Set fill rule.
- -Referenced by ipe::ImlParser::parseStyle().
- -
-
|
- -inline | -
Return line cap.
- -
-
|
- -inline | -
Return line join.
- -
-
|
- -inline | -
Return path fill rule.
- -
-
|
- -inline | -
Return name of style sheet.
- -
-
|
- -inline | -
Set name of style sheet.
- -Referenced by ipe::ImlParser::parseStyle().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::StyleSheet, including all inherited members.
-add(Kind kind, Attribute name, Attribute value) | ipe::StyleSheet | |
addEffect(Attribute name, const Effect &e) | ipe::StyleSheet | |
addGradient(Attribute name, const Gradient &s) | ipe::StyleSheet | |
addSymbol(Attribute name, const Symbol &symbol) | ipe::StyleSheet | |
addTiling(Attribute name, const Tiling &s) | ipe::StyleSheet | |
allNames(Kind kind, AttributeSeq &seq) const | ipe::StyleSheet | |
fillRule() const | ipe::StyleSheet | inline |
find(Kind, Attribute sym) const | ipe::StyleSheet | |
findEffect(Attribute sym) const | ipe::StyleSheet | |
findGradient(Attribute sym) const | ipe::StyleSheet | |
findSymbol(Attribute sym) const | ipe::StyleSheet | |
findTiling(Attribute sym) const | ipe::StyleSheet | |
has(Kind kind, Attribute sym) const | ipe::StyleSheet | |
isStandard() const | ipe::StyleSheet | inline |
layout() const | ipe::StyleSheet | |
lineCap() const | ipe::StyleSheet | inline |
lineJoin() const | ipe::StyleSheet | inline |
name() const | ipe::StyleSheet | inline |
pageNumberStyle() const | ipe::StyleSheet | |
preamble() const | ipe::StyleSheet | inline |
remove(Kind kind, Attribute sym) | ipe::StyleSheet | |
saveAsXml(Stream &stream, bool saveBitmaps=false) const | ipe::StyleSheet | |
setFillRule(TFillRule s) | ipe::StyleSheet | |
setLayout(const Layout &margins) | ipe::StyleSheet | |
setLineCap(TLineCap s) | ipe::StyleSheet | |
setLineJoin(TLineJoin s) | ipe::StyleSheet | |
setName(const String &name) | ipe::StyleSheet | inline |
setPageNumberStyle(const PageNumberStyle &pns) | ipe::StyleSheet | |
setPreamble(const String &str) | ipe::StyleSheet | inline |
setTextPadding(const TextPadding &pad) | ipe::StyleSheet | |
setTitleStyle(const TitleStyle &ts) | ipe::StyleSheet | |
standard() | ipe::StyleSheet | static |
StyleSheet() | ipe::StyleSheet | |
textPadding() const | ipe::StyleSheet | |
titleStyle() const | ipe::StyleSheet |
- Ipelib
-
- |
-
#include <ipeshape.h>
Inherited by ipe::ClosedSpline, ipe::Curve, and ipe::Ellipse.
--Public Types | |
enum | Type { ECurve, -EEllipse, -EClosedSpline - } |
-Public Member Functions | |
virtual | ~SubPath ()=0 |
virtual Type | type () const =0 |
virtual bool | closed () const |
virtual const Ellipse * | asEllipse () const |
virtual const ClosedSpline * | asClosedSpline () const |
virtual const Curve * | asCurve () const |
virtual void | save (Stream &stream) const =0 |
virtual void | draw (Painter &painter) const =0 |
virtual void | addToBBox (Rect &box, const Matrix &m, bool cp) const =0 |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const =0 |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const =0 |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const =0 |
A subpath of a Path.
-A subpath is either open, or closed. There are two special kinds of closed subpaths, namely ellipses and closed B-splines.
-enum ipe::SubPath::Type | -
-
|
- -pure virtual | -
Implementation of pure virtual destructor.
- -Referenced by ipe::Curve::closingSegment().
- -
-
|
- -pure virtual | -
Return type of this subpath.
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -Referenced by ipe::Shape::isSegment().
- -
-
|
- -virtual | -
Is this subpath closed?
-Default implementation returns true
.
Reimplemented in ipe::Curve.
- -Referenced by ipe::Path::clone(), and ipe::Shape::isSegment().
- -
-
|
- -virtual | -
Return this object as an Ellipse, or nullptr if it's not an ellipse.
- -Reimplemented in ipe::Ellipse.
- -
-
|
- -virtual | -
Return this object as an ClosedSpline, or nullptr if it's not a closed spline.
- -Reimplemented in ipe::ClosedSpline.
- -
-
|
- -virtual | -
Return this object as an Curve, or else nullptr.
- -Reimplemented in ipe::Curve.
- -Referenced by ipe::Path::clone(), ipe::Path::draw(), ipe::Shape::isSegment(), and ipe::Shape::load().
- -
-
|
- -pure virtual | -
Save subpath to XML stream.
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -
-
|
- -pure virtual | -
Draw subpath (does not call drawPath()).
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -
-
|
- -pure virtual | -
Add subpath to box.
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -
-
|
- -pure virtual | -
Return distance from v to subpath transformed by m.
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -
-
|
- -pure virtual | -
Snap to vertex.
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -
-
|
- -pure virtual | -
Snap to boundary of subpath.
- -Implemented in ipe::Curve, ipe::ClosedSpline, and ipe::Ellipse.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::SubPath, including all inherited members.
-addToBBox(Rect &box, const Matrix &m, bool cp) const =0 | ipe::SubPath | pure virtual |
asClosedSpline() const | ipe::SubPath | virtual |
asCurve() const | ipe::SubPath | virtual |
asEllipse() const | ipe::SubPath | virtual |
closed() const | ipe::SubPath | virtual |
distance(const Vector &v, const Matrix &m, double bound) const =0 | ipe::SubPath | pure virtual |
draw(Painter &painter) const =0 | ipe::SubPath | pure virtual |
EClosedSpline enum value | ipe::SubPath | |
ECurve enum value | ipe::SubPath | |
EEllipse enum value | ipe::SubPath | |
save(Stream &stream) const =0 | ipe::SubPath | pure virtual |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const =0 | ipe::SubPath | pure virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound, bool cp) const =0 | ipe::SubPath | pure virtual |
type() const =0 | ipe::SubPath | pure virtual |
Type enum name | ipe::SubPath | |
~SubPath()=0 | ipe::SubPath | pure virtual |
- Ipelib
-
- |
-
#include <ipebase.h>
Inherits ipe::Stream.
- -Inherited by ipe::FileStream, and ipe::StringStream.
--Public Member Functions | |
virtual long | tell () const =0 |
Public Member Functions inherited from ipe::Stream | |
virtual | ~Stream () |
virtual void | putChar (char ch)=0 |
virtual void | close () |
virtual void | putString (String s) |
virtual void | putCString (const char *s) |
virtual void | putRaw (const char *data, int size) |
Stream & | operator<< (char ch) |
Stream & | operator<< (const String &s) |
Stream & | operator<< (const char *s) |
Stream & | operator<< (int i) |
Stream & | operator<< (double d) |
void | putHexByte (char b) |
void | putXmlString (String s) |
Adds position feedback to IpeStream.
-
-
|
- -pure virtual | -
Implemented in ipe::FileStream, and ipe::StringStream.
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::TellStream, including all inherited members.
-close() | ipe::Stream | virtual |
operator<<(char ch) | ipe::Stream | inline |
operator<<(const String &s) | ipe::Stream | inline |
operator<<(const char *s) | ipe::Stream | inline |
operator<<(int i) | ipe::Stream | |
operator<<(double d) | ipe::Stream | |
putChar(char ch)=0 | ipe::Stream | pure virtual |
putCString(const char *s) | ipe::Stream | virtual |
putHexByte(char b) | ipe::Stream | |
putRaw(const char *data, int size) | ipe::Stream | virtual |
putString(String s) | ipe::Stream | virtual |
putXmlString(String s) | ipe::Stream | |
tell() const =0 | ipe::TellStream | pure virtual |
~Stream() | ipe::Stream | virtual |
- Ipelib
-
- |
-
#include <ipetext.h>
Inherits ipe::Object.
--Classes | |
struct | XForm |
-Public Types | |
enum | TextType { ELabel, -EMinipage - } |
Public Types inherited from ipe::Object | |
enum | Type { - EGroup, -EPath, -EText, -EImage, - - EReference - - } |
-Public Member Functions | |
Text () | |
Text (const AllAttributes &attr, String data, const Vector &pos, TextType type, double width=10.0) | |
Text (const Text &rhs) | |
~Text () | |
Text (const XmlAttributes &attr, String data) | |
virtual Object * | clone () const |
virtual Text * | asText () |
virtual Type | type () const |
virtual void | saveAsXml (Stream &stream, String layer) const |
virtual void | draw (Painter &painter) const |
virtual void | drawSimple (Painter &painter) const |
virtual void | accept (Visitor &visitor) const |
virtual void | addToBBox (Rect &box, const Matrix &m, bool) const |
virtual double | distance (const Vector &v, const Matrix &m, double bound) const |
virtual void | snapCtl (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | checkStyle (const Cascade *sheet, AttributeSeq &seq) const |
virtual bool | setAttribute (Property prop, Attribute value) |
virtual Attribute | getAttribute (Property prop) const noexcept |
Vector | align () const |
TextType | textType () const |
Vector | position () const |
String | text () const |
void | setStroke (Attribute stroke) |
void | setOpacity (Attribute opaq) |
Attribute | stroke () const |
Attribute | size () const |
Attribute | style () const |
Attribute | opacity () const |
bool | isMinipage () const |
void | setTextType (TextType type) |
THorizontalAlignment | horizontalAlignment () const |
TVerticalAlignment | verticalAlignment () const |
void | setHorizontalAlignment (THorizontalAlignment align) |
void | setVerticalAlignment (TVerticalAlignment align) |
double | width () const |
double | height () const |
double | depth () const |
double | totalHeight () const |
void | setSize (Attribute size) |
void | setStyle (Attribute style) |
void | setWidth (double width) |
void | setText (String text) |
void | setXForm (XForm *xform) const |
const XForm * | getXForm () const |
Public Member Functions inherited from ipe::Object | |
virtual | ~Object ()=0 |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual Path * | asPath () |
virtual Image * | asImage () |
virtual Reference * | asReference () |
virtual TPinned | pinned () const |
void | setPinned (TPinned pin) |
TTransformations | transformations () const |
void | setTransformations (TTransformations trans) |
virtual void | setMatrix (const Matrix &matrix) |
const Matrix & | matrix () const |
virtual void | snapVtx (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
virtual void | snapBnd (const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const |
-Static Public Member Functions | |
static TVerticalAlignment | makeVAlign (String str, TVerticalAlignment def) |
static THorizontalAlignment | makeHAlign (String str, THorizontalAlignment def) |
static void | saveAlignment (Stream &stream, THorizontalAlignment h, TVerticalAlignment v) |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::Object | |
Object () | |
Object (const AllAttributes &attr) | |
Object (const Object &rhs) | |
Object (const XmlAttributes &attr) | |
void | saveAttributesAsXml (Stream &stream, String layer) const |
Static Protected Member Functions inherited from ipe::Object | |
static void | checkSymbol (Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) |
Protected Attributes inherited from ipe::Object | |
Matrix | iMatrix |
TPinned | iPinned: 8 |
TTransformations | iTransformations: 8 |
The text object.
-The text object stores a Latex source representation, which needs to be translated into PDF by Pdflatex before it can be saved as PDF.
-There are two types of text objects: labels and minipages. The textType() method tells you which, or use isMinipage().
-The dimensions of a text object are given by width(), height(), and depth(). They are recomputed by Ipe when running LaTeX, with the exception of the width for minipage objects (whose width is fixed). Before Latex has been run, the dimensions are not reliable.
-The position of the reference point relative to the text box is given by verticalAlignment() and horizontalAlignment().
-The text() must be a legal LaTeX fragment that can be interpreted by LaTeX inside \hbox
, possibly using the macros or packages defined in the preamble.
enum ipe::Text::TextType | -
-
|
- -explicit | -
Construct an empty internal text object.
- -Referenced by clone().
- -
-
|
- -explicit | -
Create text object.
- -References ipe::EAlignTop, ELabel, ipe::ETransformationsTranslations, ipe::AllAttributes::iHorizontalAlignment, ipe::AllAttributes::iLabelStyle, ipe::AllAttributes::iOpacity, ipe::AllAttributes::iStroke, ipe::AllAttributes::iTextSize, ipe::AllAttributes::iTextStyle, ipe::AllAttributes::iTransformableText, ipe::Object::iTransformations, ipe::AllAttributes::iVerticalAlignment, type(), and width().
- -Text::Text | -( | -const Text & | -rhs | ) | -- |
Copy constructor.
- -References ipe::Text::XForm::iRefCount.
- -Text::~Text | -( | -) | -- |
Destructor.
- -References ipe::Text::XForm::iRefCount.
- -
-
|
- -explicit | -
Create from XML stream.
- -References ipe::Attribute::BLACK(), ipe::EAlignBottom, ipe::EAlignLeft, ipe::EAlignTop, ELabel, EMinipage, ipe::Lex::getDouble(), ipe::XmlAttributes::has(), isMinipage(), ipe::Attribute::makeColor(), makeHAlign(), ipe::Attribute::makeTextSize(), makeVAlign(), ipe::Attribute::NORMAL(), ipe::Attribute::OPAQUE(), ipe::String::size(), ipe::String::substr(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -virtual | -
-
|
- -virtual | -
Return pointer to this object.
- -Reimplemented from ipe::Object.
- -
-
|
- -virtual | -
Implements ipe::Object.
- -References ipe::Object::EText.
- -Referenced by setTextType(), and Text().
- -
-
|
- -virtual | -
Save object to XML stream.
- -Implements ipe::Object.
- -References ELabel, EMinipage, isMinipage(), ipe::Attribute::NORMAL(), ipe::Attribute::OPAQUE(), ipe::Stream::putXmlString(), saveAlignment(), ipe::Object::saveAttributesAsXml(), ipe::Attribute::string(), ipe::Vector::x, and ipe::Vector::y.
- -
-
|
- -virtual | -
Save text as PDF.
- -Implements ipe::Object.
- -References align(), ipe::Painter::drawText(), ipe::Object::matrix(), ipe::Painter::pop(), ipe::Painter::popMatrix(), ipe::Painter::push(), ipe::Painter::pushMatrix(), ipe::Painter::setOpacity(), ipe::Painter::setStroke(), ipe::Painter::transform(), ipe::Object::transformations(), ipe::Painter::translate(), and ipe::Painter::untransform().
- -Referenced by ipe::CanvasBase::drawObjects(), ipe::Thumbnail::saveRender(), and ipe::PdfWriter::~PdfWriter().
- -
-
|
- -virtual | -
Draw simple version for selecting and transforming.
- -Implements ipe::Object.
- -References align(), ipe::Painter::closePath(), ipe::Painter::drawPath(), ipe::EStrokedOnly, ipe::Painter::lineTo(), ipe::Object::matrix(), ipe::Painter::moveTo(), ipe::Painter::newPath(), ipe::Painter::popMatrix(), ipe::Painter::pushMatrix(), totalHeight(), ipe::Painter::transform(), ipe::Object::transformations(), ipe::Painter::translate(), and ipe::Painter::untransform().
- -
-
|
- -virtual | -
Call visitText of visitor.
- -Implements ipe::Object.
- -References ipe::Visitor::visitText().
- -Referenced by ipe::Latex::scanPage().
- -
-
|
- -virtual | -
Extend box to include the object transformed by m.
-For objects in a page, don't call this directly. The Page caches the bounding box of each object, so it is far more efficient to call Page::bbox.
-Control points that lie outside the visual object are included if cp is true.
-If called with an empty box and cp == false
, the result of this function is a tight bounding box for the object, with a little leeway in case the boundary is determined by a spline (it has to be approximated to perform this operation).
Implements ipe::Object.
- -References ipe::Rect::addPoint().
- -
-
|
- -virtual | -
Return distance of transformed object to point v. If larger than bound, can just return bound.
- -Implements ipe::Object.
- -
-
|
- -virtual | -
Compute control point snapping position for transformed object.
-Looks only for positions closer than bound. If successful, modify pos and bound. The default implementation does nothing.
- -Reimplemented from ipe::Object.
- -References ipe::Object::matrix().
- -
-
|
- -virtual | -
Check symbolic size attribute.
- -Reimplemented from ipe::Object.
- -References ipe::Matrix::a, align(), ipe::Object::checkSymbol(), ipe::EColor, ELabel, ipe::ELabelStyle, ipe::EOpacity, ipe::ETextSize, ipe::ETextStyle, ipe::ETransformationsRigidMotions, ipe::ETransformationsTranslations, ipe::Object::iTransformations, ipe::Object::matrix(), totalHeight(), and ipe::Matrix::translation().
- -
-
|
- -virtual | -
Set an attribute on this object.
-Returns true if an attribute was actually changed.
- -Reimplemented from ipe::Object.
- -References ipe::Attribute::boolean(), ELabel, EMinipage, ipe::EPropHorizontalAlignment, ipe::EPropLabelStyle, ipe::EPropMinipage, ipe::EPropOpacity, ipe::EPropStrokeColor, ipe::EPropTextSize, ipe::EPropTextStyle, ipe::EPropTransformableText, ipe::EPropVerticalAlignment, ipe::EPropWidth, ipe::ETransformationsAffine, ipe::ETransformationsTranslations, horizontalAlignment(), ipe::Attribute::horizontalAlignment(), ipe::Attribute::isEnum(), isMinipage(), ipe::Attribute::isNumber(), ipe::Attribute::NORMAL(), ipe::Attribute::number(), opacity(), ipe::Object::setAttribute(), setOpacity(), setSize(), setStroke(), setStyle(), ipe::Object::setTransformations(), setWidth(), size(), stroke(), style(), ipe::Fixed::toDouble(), ipe::Object::transformations(), verticalAlignment(), ipe::Attribute::verticalAlignment(), and width().
- -
-
|
- -virtualnoexcept | -
Get setting of an attribute of this object.
-If object does not have this attribute, returnes "undefined" attribute.
- -Reimplemented from ipe::Object.
- -References ipe::Attribute::Boolean(), ipe::EPropHorizontalAlignment, ipe::EPropLabelStyle, ipe::EPropMinipage, ipe::EPropOpacity, ipe::EPropStrokeColor, ipe::EPropTextSize, ipe::EPropTextStyle, ipe::EPropVerticalAlignment, ipe::EPropWidth, ipe::Fixed::fromDouble(), ipe::Object::getAttribute(), horizontalAlignment(), isMinipage(), opacity(), size(), stroke(), style(), verticalAlignment(), and width().
- -Vector Text::align | -( | -) | -const | -
Return position of reference point in text box coordinate system.
-Assume a coordinate system where the text box has corners (0,0) and (Width(), TotalHeight()). This function returns the coordinates of the reference point in this coordinate system.
- -References depth(), ipe::EAlignBaseline, ipe::EAlignBottom, ipe::EAlignHCenter, ipe::EAlignLeft, ipe::EAlignRight, ipe::EAlignTop, ipe::EAlignVCenter, horizontalAlignment(), totalHeight(), verticalAlignment(), width(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by checkStyle(), ipe::CairoPainter::doDrawText(), draw(), drawSimple(), setHorizontalAlignment(), and setVerticalAlignment().
- -Text::TextType Text::textType | -( | -) | -const | -
-
|
- -inline | -
Return text position.
- -
-
|
- -inline | -
Return text source.
- -Referenced by ipe::Latex::createLatexSource(), ipe::CairoPainter::doDrawText(), ipe::PdfResources::pageNumber(), and setText().
- -void Text::setStroke | -( | -Attribute | -stroke | ) | -- |
Set stroke color.
- -References stroke().
- -Referenced by ipe::Page::applyTitleStyle(), and setAttribute().
- -void Text::setOpacity | -( | -Attribute | -opaq | ) | -- |
Set opacity of the object.
- -Referenced by setAttribute().
- -
-
|
- -inline | -
Return stroke color.
- -Referenced by ipe::Latex::createLatexSource(), getAttribute(), setAttribute(), and setStroke().
- -
-
|
- -inline | -
Return font size.
- -Referenced by ipe::Latex::addPageNumber(), getAttribute(), setAttribute(), setSize(), and ipe::Latex::takeResources().
- -
-
|
- -inline | -
Return Latex style of text object.
- -Referenced by ipe::Latex::createLatexSource(), getAttribute(), setAttribute(), and setStyle().
- -
-
|
- -inline | -
Return opacity of the opject.
- -References depth(), height(), horizontalAlignment(), isMinipage(), makeHAlign(), makeVAlign(), saveAlignment(), setHorizontalAlignment(), setSize(), setStyle(), setText(), setTextType(), setVerticalAlignment(), setWidth(), totalHeight(), verticalAlignment(), and width().
- -Referenced by getAttribute(), and setAttribute().
- -
-
|
- -inline | -
Return true if text object is formatted as a minipage.
-Equivalent to type being EMinipage.
- -References EMinipage.
- -Referenced by ipe::Latex::createLatexSource(), getAttribute(), opacity(), saveAsXml(), setAttribute(), setXForm(), and Text().
- -void Text::setTextType | -( | -TextType | -type | ) | -- |
Change type.
-This invalidates (and destroys) the XForm.
- -References ipe::Attribute::NORMAL(), setXForm(), and type().
- -Referenced by opacity().
- -
-
|
- -inline | -
Return horizontal alignment of text object.
- -Referenced by align(), getAttribute(), opacity(), and setAttribute().
- -
-
|
- -inline | -
Return vertical alignment of text object.
- -Referenced by align(), getAttribute(), opacity(), and setAttribute().
- -void Text::setHorizontalAlignment | -( | -THorizontalAlignment | -align | ) | -- |
Change horizontal alignment (text moves with respect to reference point).
- -References align().
- -Referenced by ipe::Page::applyTitleStyle(), and opacity().
- -void Text::setVerticalAlignment | -( | -TVerticalAlignment | -align | ) | -- |
Change vertical alignment (text moves with respect to reference point).
- -References align().
- -Referenced by ipe::Page::applyTitleStyle(), and opacity().
- -
-
|
- -static | -
Return vertical alignment indicated by a name, or else default.
- -References ipe::EAlignBaseline, ipe::EAlignBottom, ipe::EAlignTop, and ipe::EAlignVCenter.
- -Referenced by opacity(), ipe::ImlParser::parseStyle(), and Text().
- -
-
|
- -static | -
Return horizontal alignment indicated by a name, or else default.
- -References ipe::EAlignHCenter, ipe::EAlignLeft, and ipe::EAlignRight.
- -Referenced by opacity(), ipe::ImlParser::parseStyle(), and Text().
- -
-
|
- -static | -
References ipe::EAlignBaseline, ipe::EAlignBottom, ipe::EAlignHCenter, ipe::EAlignLeft, ipe::EAlignRight, ipe::EAlignTop, and ipe::EAlignVCenter.
- -Referenced by opacity(), saveAsXml(), and ipe::StyleSheet::saveAsXml().
- -
-
|
- -inline | -
Return width of text object.
- -Referenced by align(), ipe::Latex::createLatexSource(), ipe::BBoxPainter::doDrawText(), ipe::CairoPainter::doDrawText(), getAttribute(), opacity(), setAttribute(), setWidth(), and Text().
- -
-
|
- -inline | -
Return height of text object (from baseline to top).
- -Referenced by opacity().
- -
-
|
- -inline | -
Return depth of text object.
- -References ipe::Text::XForm::iDepth.
- - - -
-
|
- -inline | -
Return height + depth of text object.
- -References ipe::Text::XForm::iDepth.
- -Referenced by align(), checkStyle(), ipe::BBoxPainter::doDrawText(), ipe::CairoPainter::doDrawText(), drawSimple(), and opacity().
- -void Text::setSize | -( | -Attribute | -size | ) | -- |
Set font size of text.
-This invalidates (and destroys) the XForm.
- -References setXForm(), and size().
- -Referenced by ipe::Page::applyTitleStyle(), opacity(), and setAttribute().
- -void Text::setStyle | -( | -Attribute | -style | ) | -- |
Set Latex style of text.
-This invalidates (and destroys) the XForm.
- -References setXForm(), and style().
- -Referenced by opacity(), and setAttribute().
- -void Text::setWidth | -( | -double | -width | ) | -- |
Set width of paragraph.
-This invalidates (and destroys) the XForm. The function panics if object is not a (true) minipage.
- -References EMinipage, setXForm(), textType(), and width().
- -Referenced by opacity(), and setAttribute().
- -void Text::setText | -( | -String | -text | ) | -- |
Sets the text of the text object.
-This invalidates (and destroys) the XForm.
- -References setXForm(), and text().
- -Referenced by opacity(), and ipe::Page::setTitle().
- -void Text::setXForm | -( | -XForm * | -xform | ) | -const | -
Update the PDF code for this object.
- -References ipe::Rect::height(), ipe::Text::XForm::iBBox, ipe::Text::XForm::iDepth, ipe::Text::XForm::iRefCount, isMinipage(), ipe::Text::XForm::iStretch, and ipe::Rect::width().
- -Referenced by setSize(), setStyle(), setText(), setTextType(), and setWidth().
- -
-
|
- -inline | -
Return the PDF representation of this text object.
-If Pdflatex has not been run yet, returns 0.
- -Referenced by ipe::Latex::createLatexSource(), ipe::PdfPainter::doDrawText(), and ipe::CairoPainter::doDrawText().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Text, including all inherited members.
-accept(Visitor &visitor) const | ipe::Text | virtual |
addToBBox(Rect &box, const Matrix &m, bool) const | ipe::Text | virtual |
align() const | ipe::Text | |
asGroup() | ipe::Object | virtual |
asGroup() const | ipe::Object | virtual |
asImage() | ipe::Object | virtual |
asPath() | ipe::Object | virtual |
asReference() | ipe::Object | virtual |
asText() | ipe::Text | virtual |
checkStyle(const Cascade *sheet, AttributeSeq &seq) const | ipe::Text | virtual |
checkSymbol(Kind kind, Attribute attr, const Cascade *sheet, AttributeSeq &seq) | ipe::Object | protectedstatic |
clone() const | ipe::Text | virtual |
depth() const | ipe::Text | inline |
distance(const Vector &v, const Matrix &m, double bound) const | ipe::Text | virtual |
draw(Painter &painter) const | ipe::Text | virtual |
drawSimple(Painter &painter) const | ipe::Text | virtual |
EGroup enum value | ipe::Object | |
EImage enum value | ipe::Object | |
ELabel enum value | ipe::Text | |
EMinipage enum value | ipe::Text | |
EPath enum value | ipe::Object | |
EReference enum value | ipe::Object | |
EText enum value | ipe::Object | |
getAttribute(Property prop) const noexcept | ipe::Text | virtual |
getXForm() const | ipe::Text | inline |
height() const | ipe::Text | inline |
horizontalAlignment() const | ipe::Text | inline |
iMatrix | ipe::Object | protected |
iPinned | ipe::Object | protected |
isMinipage() const | ipe::Text | inline |
iTransformations | ipe::Object | protected |
makeHAlign(String str, THorizontalAlignment def) | ipe::Text | static |
makeVAlign(String str, TVerticalAlignment def) | ipe::Text | static |
matrix() const | ipe::Object | inline |
Object() | ipe::Object | explicitprotected |
Object(const AllAttributes &attr) | ipe::Object | explicitprotected |
Object(const Object &rhs) | ipe::Object | protected |
Object(const XmlAttributes &attr) | ipe::Object | explicitprotected |
opacity() const | ipe::Text | inline |
pinned() const | ipe::Object | virtual |
position() const | ipe::Text | inline |
saveAlignment(Stream &stream, THorizontalAlignment h, TVerticalAlignment v) | ipe::Text | static |
saveAsXml(Stream &stream, String layer) const | ipe::Text | virtual |
saveAttributesAsXml(Stream &stream, String layer) const | ipe::Object | protected |
setAttribute(Property prop, Attribute value) | ipe::Text | virtual |
setHorizontalAlignment(THorizontalAlignment align) | ipe::Text | |
setMatrix(const Matrix &matrix) | ipe::Object | virtual |
setOpacity(Attribute opaq) | ipe::Text | |
setPinned(TPinned pin) | ipe::Object | |
setSize(Attribute size) | ipe::Text | |
setStroke(Attribute stroke) | ipe::Text | |
setStyle(Attribute style) | ipe::Text | |
setText(String text) | ipe::Text | |
setTextType(TextType type) | ipe::Text | |
setTransformations(TTransformations trans) | ipe::Object | |
setVerticalAlignment(TVerticalAlignment align) | ipe::Text | |
setWidth(double width) | ipe::Text | |
setXForm(XForm *xform) const | ipe::Text | |
size() const | ipe::Text | inline |
snapBnd(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
snapCtl(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Text | virtual |
snapVtx(const Vector &mouse, const Matrix &m, Vector &pos, double &bound) const | ipe::Object | virtual |
stroke() const | ipe::Text | inline |
style() const | ipe::Text | inline |
text() const | ipe::Text | inline |
Text() | ipe::Text | explicit |
Text(const AllAttributes &attr, String data, const Vector &pos, TextType type, double width=10.0) | ipe::Text | explicit |
Text(const Text &rhs) | ipe::Text | |
Text(const XmlAttributes &attr, String data) | ipe::Text | explicit |
textType() const | ipe::Text | |
TextType enum name | ipe::Text | |
totalHeight() const | ipe::Text | inline |
transformations() const | ipe::Object | inline |
type() const | ipe::Text | virtual |
Type enum name | ipe::Object | |
verticalAlignment() const | ipe::Text | inline |
width() const | ipe::Text | inline |
~Object()=0 | ipe::Object | pure virtual |
~Text() | ipe::Text |
- Ipelib
-
- |
-
#include <ipethumbs.h>
-Public Types | |
enum | TargetFormat { ESVG, -EPNG, -EPS, -EPDF - } |
-Public Member Functions | |
Thumbnail (const Document *doc, int width) | |
void | setTransparent (bool t) |
void | setNoCrop (bool n) |
int | width () const |
int | height () const |
Buffer | render (const Page *page, int view) |
bool | saveRender (TargetFormat fm, const char *dst, const Page *page, int view, double zoom) |
enum ipe::Thumbnail::TargetFormat | -
Thumbnail::Thumbnail | -( | -const Document * | -doc, | -
- | - | int | -width | -
- | ) | -- |
References ipe::Document::cascade(), ipe::Cascade::findLayout(), ipe::Rect::height(), ipe::Layout::paper(), width(), and ipe::Rect::width().
- -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
Referenced by ipe::PdfThumbnail::PdfThumbnail(), ipe::CanvasBase::selectPageOrView(), and Thumbnail().
- -
-
|
- -inline | -
References render(), and saveRender().
- -Referenced by ipe::PageSelector::fill(), and ipe::CanvasBase::selectPageOrView().
- -References ipe::Document::cascade(), ipe::Page::count(), ipe::Buffer::data(), ipe::Object::draw(), ipe::Page::layerMatrices(), ipe::Page::layerOf(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Layout::paper(), ipe::Painter::setAttributeMap(), ipe::Rect::topLeft(), ipe::Page::viewMap(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by ipe::PageSelector::fill(), height(), and ipe::PdfThumbnail::height().
- -bool Thumbnail::saveRender | -( | -TargetFormat | -fm, | -
- | - | const char * | -dst, | -
- | - | const Page * | -page, | -
- | - | int | -view, | -
- | - | double | -zoom | -
- | ) | -- |
References ipe::Attribute::BACKGROUND(), ipe::Document::cascade(), ipe::Page::count(), ipe::Text::draw(), ipe::Object::draw(), EPDF, EPNG, EPS, ESVG, ipe::Page::findLayer(), ipe::Cascade::findSymbol(), ipe::Platform::fopen(), ipe::Rect::height(), ipe::Page::layerMatrices(), ipe::Page::layerOf(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Page::pageBBox(), ipe::Layout::paper(), ipe::Painter::setAttributeMap(), ipe::Page::titleText(), ipe::Rect::topLeft(), ipe::Page::viewMap(), ipe::Rect::width(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by height().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Thumbnail, including all inherited members.
-EPDF enum value | ipe::Thumbnail | |
EPNG enum value | ipe::Thumbnail | |
EPS enum value | ipe::Thumbnail | |
ESVG enum value | ipe::Thumbnail | |
height() const | ipe::Thumbnail | inline |
render(const Page *page, int view) | ipe::Thumbnail | |
saveRender(TargetFormat fm, const char *dst, const Page *page, int view, double zoom) | ipe::Thumbnail | |
setNoCrop(bool n) | ipe::Thumbnail | inline |
setTransparent(bool t) | ipe::Thumbnail | inline |
TargetFormat enum name | ipe::Thumbnail | |
Thumbnail(const Document *doc, int width) | ipe::Thumbnail | |
width() const | ipe::Thumbnail | inline |
- Ipelib
-
- |
-
#include <ipetoolbase.h>
Inherited by ipe::PanTool, ipe::SelectTool, and ipe::TransformTool.
--Public Member Functions | |
virtual | ~Tool () |
virtual void | draw (Painter &painter) const =0 |
virtual void | mouseButton (int button, bool press) |
virtual void | mouseMove () |
virtual bool | key (String text, int modifiers) |
virtual void | snapVtx (const Vector &mouse, Vector &pos, double &bound, bool cp) const |
-Protected Member Functions | |
Tool (CanvasBase *canvas) | |
-Protected Attributes | |
CanvasBase * | iCanvas |
Abstract base class for various canvas tools.
-The Canvas doesn't know about the various modes for object creation, editing, and moving, but delegates the handling to a subclass of Tool.
-
-
|
- -virtual | -
Virtual destructor.
- -
-
|
- -protected | -
Constructor.
- -
-
|
- -pure virtual | -
Implemented in ipe::TransformTool, ipe::SelectTool, and ipe::PanTool.
- -
-
|
- -virtual | -
Called when a mouse button is pressed or released on the canvas.
-button is 1, 2, or 3, with Shift/Ctrl/Alt/Meta modifiers added in (as defined in CanvasBase::TModifiers. press is true for button-down, and false for button-up.
- -Reimplemented in ipe::TransformTool, ipe::SelectTool, and ipe::PanTool.
- -Referenced by Canvas::drawRect(), ipe::Canvas::mouseButton(), and ipe::Canvas::tabletEvent().
- -
-
|
- -virtual | -
Called when the mouse is moved on the canvas.
- -Reimplemented in ipe::TransformTool, ipe::SelectTool, and ipe::PanTool.
- -Referenced by Canvas::mouseMove(), ipe::Canvas::mouseMoveEvent(), and ipe::Canvas::tabletEvent().
- -
-
|
- -virtual | -
Called when a key is pressed.
-modifiers are as defined in CanvasBase::TModifiers.
- -Reimplemented in ipe::SelectTool.
- -Referenced by Canvas::key(), and ipe::Canvas::keyPressEvent().
- -
-
|
- -virtual | -
Snapping to vertices on object currently being drawn.
- -
-
|
- -protected | -
Referenced by ipe::PanTool::draw(), ipe::SelectTool::draw(), ipe::SelectTool::key(), ipe::PanTool::mouseButton(), ipe::SelectTool::mouseButton(), ipe::TransformTool::mouseButton(), ipe::PanTool::mouseMove(), ipe::SelectTool::mouseMove(), ipe::TransformTool::mouseMove(), ipe::PanTool::PanTool(), ipe::SelectTool::SelectTool(), and ipe::TransformTool::TransformTool().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Tool, including all inherited members.
-draw(Painter &painter) const =0 | ipe::Tool | pure virtual |
iCanvas | ipe::Tool | protected |
key(String text, int modifiers) | ipe::Tool | virtual |
mouseButton(int button, bool press) | ipe::Tool | virtual |
mouseMove() | ipe::Tool | virtual |
snapVtx(const Vector &mouse, Vector &pos, double &bound, bool cp) const | ipe::Tool | virtual |
Tool(CanvasBase *canvas) | ipe::Tool | protected |
~Tool() | ipe::Tool | virtual |
- Ipelib
-
- |
-
#include <ipetool.h>
Inherits ipe::Tool.
--Public Types | |
enum | TType { - ETranslate, -EScale, -EStretch, -ERotate, - - EShear - - } |
-Public Member Functions | |
TransformTool (CanvasBase *canvas, Page *page, int view, TType type, bool withShift) | |
bool | isValid () const |
virtual void | draw (Painter &painter) const |
virtual void | mouseButton (int button, bool press) |
virtual void | mouseMove () |
virtual void | report () |
Public Member Functions inherited from ipe::Tool | |
virtual | ~Tool () |
virtual bool | key (String text, int modifiers) |
virtual void | snapVtx (const Vector &mouse, Vector &pos, double &bound, bool cp) const |
-Protected Member Functions | |
void | compute (const Vector &v) |
Protected Member Functions inherited from ipe::Tool | |
Tool (CanvasBase *canvas) | |
-Protected Attributes | |
Page * | iPage |
int | iView |
TType | iType |
bool | iWithShift |
bool | iOnlyHorizontal |
bool | iOnlyVertical |
Vector | iMouseDown |
Matrix | iTransform |
Vector | iOrigin |
Angle | iDir |
bool | iValid |
Protected Attributes inherited from ipe::Tool | |
CanvasBase * | iCanvas |
A tool for transforming the selected objects on the canvas.
-Supports moving, rotating, scaling, stretching, and shearing.
-enum ipe::TransformTool::TType | -
TransformTool::TransformTool | -( | -CanvasBase * | -canvas, | -
- | - | Page * | -page, | -
- | - | int | -view, | -
- | - | TType | -type, | -
- | - | bool | -withShift | -
- | ) | -- |
Constructor starts transformation.
-After constructing a TransformTool, you must call isValid() to ensure that the transformation can be performed.
-A transformation can fail because the selection contains pinned objects, or because the initial mouse position is identical to the transformation origin.
- -References ipe::abs(), ipe::Rect::addRect(), ipe::Page::bbox(), ipe::Rect::bottomLeft(), ipe::Page::count(), ipe::EFixedPin, ipe::CanvasBase::EHandCursor, ipe::ENoPin, EScale, EShear, EStretch, ETranslate, ipe::EVerticalPin, ipe::Tool::iCanvas, ipe::Snap::iDir, iDir, iMouseDown, iOnlyHorizontal, iOnlyVertical, ipe::Snap::iOrigin, iOrigin, iPage, iType, iValid, iView, ipe::Snap::iWithAxes, iWithShift, ipe::Page::object(), ipe::Object::pinned(), ipe::CanvasBase::pos(), ipe::Page::select(), ipe::CanvasBase::setAutoOrigin(), ipe::CanvasBase::setCursor(), ipe::CanvasBase::snap(), ipe::Rect::topRight(), ipe::Vector::x, and ipe::Vector::y.
- -bool TransformTool::isValid | -( | -) | -const | -
Check that the transformation can be performed.
- -References iValid.
- -
-
|
- -virtual | -
Implements ipe::Tool.
- -References ipe::Page::count(), ipe::Object::drawSimple(), iPage, iTransform, ipe::Page::object(), ipe::Page::select(), ipe::Painter::setStroke(), and ipe::Painter::transform().
- -
-
|
- -virtual | -
Called when a mouse button is pressed or released on the canvas.
-button is 1, 2, or 3, with Shift/Ctrl/Alt/Meta modifiers added in (as defined in CanvasBase::TModifiers. press is true for button-down, and false for button-up.
- -Reimplemented from ipe::Tool.
- -References compute(), ipe::CanvasBase::finishTool(), ipe::Tool::iCanvas, ipe::CanvasBase::pos(), and report().
- -
-
|
- -virtual | -
Called when the mouse is moved on the canvas.
- -Reimplemented from ipe::Tool.
- -References compute(), ipe::Tool::iCanvas, ipe::CanvasBase::pos(), and ipe::CanvasBase::updateTool().
- -
-
|
- -virtual | -
Report the final transformation chosen.
-The implementation in TransformTool does nothing. Derived classes should reimplement report().
- -Referenced by mouseButton().
- -
-
|
- -protected | -
References ipe::abs(), ipe::Vector::angle(), ERotate, EScale, EShear, EStretch, ETranslate, iDir, iMouseDown, iOnlyHorizontal, iOnlyVertical, iOrigin, iTransform, iType, iWithShift, ipe::Vector::sqLen(), ipe::Vector::x, and ipe::Vector::y.
- -Referenced by mouseButton(), and mouseMove().
- -
-
|
- -protected | -
Referenced by draw(), and TransformTool().
- -
-
|
- -protected | -
Referenced by TransformTool().
- -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
Referenced by compute(), and TransformTool().
- -
-
|
- -protected | -
Referenced by isValid(), and TransformTool().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::TransformTool, including all inherited members.
-compute(const Vector &v) | ipe::TransformTool | protected |
draw(Painter &painter) const | ipe::TransformTool | virtual |
ERotate enum value | ipe::TransformTool | |
EScale enum value | ipe::TransformTool | |
EShear enum value | ipe::TransformTool | |
EStretch enum value | ipe::TransformTool | |
ETranslate enum value | ipe::TransformTool | |
iCanvas | ipe::Tool | protected |
iDir | ipe::TransformTool | protected |
iMouseDown | ipe::TransformTool | protected |
iOnlyHorizontal | ipe::TransformTool | protected |
iOnlyVertical | ipe::TransformTool | protected |
iOrigin | ipe::TransformTool | protected |
iPage | ipe::TransformTool | protected |
isValid() const | ipe::TransformTool | |
iTransform | ipe::TransformTool | protected |
iType | ipe::TransformTool | protected |
iValid | ipe::TransformTool | protected |
iView | ipe::TransformTool | protected |
iWithShift | ipe::TransformTool | protected |
key(String text, int modifiers) | ipe::Tool | virtual |
mouseButton(int button, bool press) | ipe::TransformTool | virtual |
mouseMove() | ipe::TransformTool | virtual |
report() | ipe::TransformTool | virtual |
snapVtx(const Vector &mouse, Vector &pos, double &bound, bool cp) const | ipe::Tool | virtual |
Tool(CanvasBase *canvas) | ipe::Tool | protected |
TransformTool(CanvasBase *canvas, Page *page, int view, TType type, bool withShift) | ipe::TransformTool | |
TType enum name | ipe::TransformTool | |
~Tool() | ipe::Tool | virtual |
- Ipelib
-
- |
-
#include <ipegeo.h>
-Public Member Functions | |
Vector () | |
Vector (Angle alpha) | |
Vector (double x0, double y0) | |
double | sqLen () const |
double | len () const |
Angle | angle () const |
Vector | normalized () const |
Vector | orthogonal () const |
double | factorize (Vector &unit) const |
bool | snap (const Vector &mouse, Vector &pos, double &bound) const |
bool | operator== (const Vector &rhs) const |
bool | operator!= (const Vector &rhs) const |
void | operator+= (const Vector &rhs) |
void | operator-= (const Vector &rhs) |
void | operator*= (double rhs) |
Vector | operator+ (const Vector &rhs) const |
Vector | operator- (const Vector &rhs) const |
Vector | operator* (double rhs) const |
Vector | operator- () const |
-Public Attributes | |
double | x |
double | y |
-Static Public Attributes | |
static Vector | ZERO = Vector(0.0, 0.0) |
-Related Functions | |
(Note that these are not member functions.) - | |
Stream & | operator<< (Stream &stream, const Vector &rhs) |
Vector | operator* (double lhs, const Vector &rhs) |
double | dot (const Vector &lhs, const Vector &rhs) |
Two-dimensional vector.
-Unlike some other libraries, I don't make a difference between points and vectors.
-
-
|
- -inline | -
Uninitialized vector.
- -Referenced by ipe::Angle::liesBetween().
- -
-
|
- -explicit | -
Construct a unit vector with this direction.
- -
-
|
- -inlineexplicit | -
Construct a vector.
- -
-
|
- -inline | -
Return square of Euclidean length.
-Return square of vector's length.
- -Referenced by ipe::TransformTool::compute(), ipe::Line::Line(), and ipe::Snap::snap().
- -double Vector::len | -( | -) | -const | -
Referenced by ipe::Line::distance(), and ipe::Snap::getLine().
- -Angle Vector::angle | -( | -) | -const | -
Return angle of the vector (with positive x-direction).
-The returned angle lies between -pi and +pi. Returns zero for the zero vector.
- -References ZERO.
- -Referenced by ipe::TransformTool::compute(), ipe::Arc::distance(), ipe::Snap::getLine(), ipe::Arc::intersect(), and ipe::Snap::setEdge().
- -Vector Vector::normalized | -( | -) | -const | -
Return this vector normalized (with length one).
-Normalizing the zero vector returns the vector (1,0).
- -Referenced by ipe::Arc::distance().
- -Vector Vector::orthogonal | -( | -) | -const | -
Return this vector turned 90 degrees to the left.
- -double Vector::factorize | -( | -Vector & | -unit | ) | -const | -
Normalizes this vector into unit and returns length. If this is the zero vector, unit is set to (1,0).
- -Referenced by ipe::Segment::distance(), and ipe::Segment::project().
- -bool Vector::snap | -( | -const Vector & | -mouse, | -
- | - | Vector & | -pos, | -
- | - | double & | -bound | -
- | ) | -const | -
Snap to nearby vertex.
-If distance between mouse and this vector is less than bound, set pos to this vector and bound to the distance, and return true
.
References ipe::Rect::Rect(), x, and y.
- -Referenced by ipe::Segment::snap(), ipe::Bezier::snap(), and ipe::CanvasBase::snapToPaperAndFrame().
- -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
Multiply vector by scalar.
- -Vector-addition.
- -Vector-subtraction.
- -
-
|
- -inline | -
Vector * scalar.
- -
-
|
- -inline | -
Unary minus for Vector.
- -
-
|
- -related | -
The origin (zero vector).
- -Referenced by angle(), ipe::CanvasObserver::canvasObserverSizeChanged(), ipe::CairoPainter::doDrawText(), ipe::CanvasBase::drawGrid(), ipe::PanTool::PanTool(), ipe::Reference::Reference(), ipe::Reference::saveAsXml(), and ipe::CanvasBase::snapToPaperAndFrame().
- -double ipe::Vector::x | -
Coordinates are public.
- -Referenced by ipe::Rect::addPoint(), ipe::Rect::addRect(), ipe::Text::align(), ipe::Rect::certainClearance(), ipe::Rect::clipTo(), ipe::TransformTool::compute(), ipe::CanvasBase::computeFifi(), ipe::Rect::contains(), ipe::PdfViewBase::devToUser(), ipe::CanvasBase::devToUser(), ipe::Line::distance(), ipe::CairoPainter::doCurveTo(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), ipe::CairoPainter::doLineTo(), ipe::CairoPainter::doMoveTo(), dot(), ipe::Image::draw(), ipe::SelectTool::draw(), ipe::Shape::draw(), ipe::CanvasBase::drawAxes(), ipe::CanvasBase::drawFrame(), ipe::CanvasBase::drawGrid(), ipe::CanvasBase::drawObjects(), ipe::CanvasBase::drawPaper(), ipe::CairoPainter::executeStream(), ipe::Image::Image(), ipe::Rect::intersects(), ipe::Matrix::Matrix(), ipe::SelectTool::mouseButton(), operator!=(), operator*(), ipe::Linear::operator*(), ipe::Matrix::operator*(), operator+=(), operator-=(), operator==(), ipe::ImlParser::parseStyle(), ipe::QPt(), ipe::Reference::Reference(), ipe::PdfViewBase::refreshSurface(), ipe::Thumbnail::render(), ipe::Text::saveAsXml(), ipe::Group::saveAsXml(), ipe::Thumbnail::saveRender(), ipe::Shape::Shape(), ipe::Snap::simpleSnap(), snap(), ipe::Bezier::spiroSpline(), ipe::Text::Text(), ipe::TransformTool::TransformTool(), ipe::Painter::translate(), ipe::PdfViewBase::userToDev(), and ipe::CanvasBase::userToDev().
- -double ipe::Vector::y | -
Coordinates are public.
- -Referenced by ipe::Rect::addPoint(), ipe::Rect::addRect(), ipe::Text::align(), ipe::Rect::certainClearance(), ipe::Rect::clipTo(), ipe::TransformTool::compute(), ipe::CanvasBase::computeFifi(), ipe::Rect::contains(), ipe::PdfViewBase::devToUser(), ipe::CanvasBase::devToUser(), ipe::Line::distance(), ipe::CairoPainter::doCurveTo(), ipe::CairoPainter::doDrawPath(), ipe::CairoPainter::doDrawText(), ipe::CairoPainter::doLineTo(), ipe::CairoPainter::doMoveTo(), dot(), ipe::Image::draw(), ipe::SelectTool::draw(), ipe::Shape::draw(), ipe::CanvasBase::drawAxes(), ipe::CanvasBase::drawFrame(), ipe::CanvasBase::drawGrid(), ipe::CanvasBase::drawObjects(), ipe::CanvasBase::drawPaper(), ipe::CairoPainter::executeStream(), ipe::Image::Image(), ipe::Rect::intersects(), ipe::Matrix::Matrix(), operator!=(), operator*(), ipe::Linear::operator*(), ipe::Matrix::operator*(), operator+=(), operator-=(), operator==(), ipe::ImlParser::parseStyle(), ipe::QPt(), ipe::Reference::Reference(), ipe::PdfViewBase::refreshSurface(), ipe::Thumbnail::render(), ipe::Text::saveAsXml(), ipe::Group::saveAsXml(), ipe::Thumbnail::saveRender(), ipe::Shape::Shape(), ipe::Snap::simpleSnap(), snap(), ipe::Bezier::spiroSpline(), ipe::Text::Text(), ipe::TransformTool::TransformTool(), ipe::Painter::translate(), ipe::PdfViewBase::userToDev(), and ipe::CanvasBase::userToDev().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Vector, including all inherited members.
-angle() const | ipe::Vector | |
dot(const Vector &lhs, const Vector &rhs) | ipe::Vector | related |
factorize(Vector &unit) const | ipe::Vector | |
len() const | ipe::Vector | |
normalized() const | ipe::Vector | |
operator!=(const Vector &rhs) const | ipe::Vector | inline |
operator*(double rhs) const | ipe::Vector | inline |
operator*(double lhs, const Vector &rhs) | ipe::Vector | related |
operator*=(double rhs) | ipe::Vector | inline |
operator+(const Vector &rhs) const | ipe::Vector | inline |
operator+=(const Vector &rhs) | ipe::Vector | inline |
operator-(const Vector &rhs) const | ipe::Vector | inline |
operator-() const | ipe::Vector | inline |
operator-=(const Vector &rhs) | ipe::Vector | inline |
operator<<(Stream &stream, const Vector &rhs) | ipe::Vector | related |
operator==(const Vector &rhs) const | ipe::Vector | inline |
orthogonal() const | ipe::Vector | |
snap(const Vector &mouse, Vector &pos, double &bound) const | ipe::Vector | |
sqLen() const | ipe::Vector | inline |
Vector() | ipe::Vector | inline |
Vector(Angle alpha) | ipe::Vector | explicit |
Vector(double x0, double y0) | ipe::Vector | inlineexplicit |
x | ipe::Vector | |
y | ipe::Vector | |
ZERO | ipe::Vector | static |
- Ipelib
-
- |
-
#include <ipeobject.h>
Inherited by CollectSegs, ipe::BitmapFinder, and ipe::TextCollectingVisitor.
--Public Member Functions | |
virtual | ~Visitor () |
virtual void | visitGroup (const Group *obj) |
virtual void | visitPath (const Path *obj) |
virtual void | visitText (const Text *obj) |
virtual void | visitImage (const Image *obj) |
virtual void | visitReference (const Reference *obj) |
Base class for visitors to Object.
-Many operations on Ipe Objects are implemented as visitors, all derived from Visitor.
-The default implementation of each visitXXX member does nothing.
-
-
|
- -virtual | -
Pure virtual destructor.
- -Referenced by ipe::Object::snapBnd().
- -
-
|
- -virtual | -
Called on an Group object.
- -Reimplemented in ipe::BitmapFinder.
- -Referenced by ipe::Group::accept().
- -
-
|
- -virtual | -
Called on an Path object.
- -Referenced by ipe::Path::accept().
- -
-
|
- -virtual | -
Called on an Text object.
- -Referenced by ipe::Text::accept().
- -
-
|
- -virtual | -
Called on an Image object.
- -Reimplemented in ipe::BitmapFinder.
- -Referenced by ipe::Image::accept().
- -
-
|
- -virtual | -
Called on an Reference object.
- -Referenced by ipe::Reference::accept().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::Visitor, including all inherited members.
-visitGroup(const Group *obj) | ipe::Visitor | virtual |
visitImage(const Image *obj) | ipe::Visitor | virtual |
visitPath(const Path *obj) | ipe::Visitor | virtual |
visitReference(const Reference *obj) | ipe::Visitor | virtual |
visitText(const Text *obj) | ipe::Visitor | virtual |
~Visitor() | ipe::Visitor | virtual |
- Ipelib
-
- |
-
#include <ipexml.h>
-Public Types | |
typedef Map::const_iterator | const_iterator |
-Public Member Functions | |
const_iterator | begin () const |
const_iterator | end () const |
XmlAttributes () | |
void | clear () |
String | operator[] (String str) const |
bool | has (String str) const |
bool | has (String str, String &val) const |
void | add (String key, String val) |
void | setSlash () |
bool | slash () const |
Stores attributes of an XML tag.
-typedef Map::const_iterator ipe::XmlAttributes::const_iterator | -
Iterator for (key, value) pairs.
- -XmlAttributes::XmlAttributes | -( | -) | -- |
Constructor for an empty collection.
- -Referenced by end().
- -
-
|
- -inline | -
Return const iterator for first attribute.
- -
-
|
- -inline | -
Return const iterator for end of attributes.
- -References add(), clear(), has(), operator[](), and XmlAttributes().
- -void XmlAttributes::clear | -( | -) | -- |
Remove all attributes.
- -Referenced by end(), and ipe::XmlParser::parseAttributes().
- -Return attribute with given key.
-Returns an empty string if no attribute with this key exists.
- -Referenced by end().
- -bool XmlAttributes::has | -( | -String | -str | ) | -const | -
Check whether attribute exists.
- -References ipe::XmlParser::XmlParser().
- -Referenced by ipe::Bitmap::Bitmap(), end(), ipe::Group::Group(), ipe::Image::Image(), ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseDocument(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parseStyle(), ipe::ImlParser::parseView(), ipe::Reference::Reference(), and ipe::Text::Text().
- -Check whether attribute exists, set val
if so.
Add a new attribute.
- -Referenced by end(), and ipe::XmlParser::parseAttributes().
- -
-
|
- -inline | -
Set that the tag contains the final /.
- -Referenced by ipe::XmlParser::parseAttributes().
- -
-
|
- -inline | -
Return whether tag contains the final /.
- -Referenced by ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parseStyle(), and ipe::ImlParser::parseView().
- -
- Ipelib
-
- |
-
This is the complete list of members for ipe::XmlAttributes, including all inherited members.
-add(String key, String val) | ipe::XmlAttributes | |
begin() const | ipe::XmlAttributes | inline |
clear() | ipe::XmlAttributes | |
const_iterator typedef | ipe::XmlAttributes | |
end() const | ipe::XmlAttributes | inline |
has(String str) const | ipe::XmlAttributes | |
has(String str, String &val) const | ipe::XmlAttributes | |
operator[](String str) const | ipe::XmlAttributes | |
setSlash() | ipe::XmlAttributes | inline |
slash() const | ipe::XmlAttributes | inline |
XmlAttributes() | ipe::XmlAttributes |
- Ipelib
-
- |
-
#include <ipexml.h>
Inherited by ipe::ImlParser.
--Public Member Functions | |
XmlParser (DataSource &source) | |
virtual | ~XmlParser () |
int | parsePosition () const |
String | parseToTag () |
bool | parseAttributes (XmlAttributes &attr, bool qm=false) |
bool | parsePCDATA (String tag, String &pcdata) |
bool | isTagChar (int ch) |
void | getChar () |
bool | eos () |
void | skipWhitespace () |
-Protected Member Functions | |
String | parseToTagX () |
-Protected Attributes | |
DataSource & | iSource |
String | iTopElement |
int | iCh |
int | iPos |
Base class for XML stream parsing.
-This is the base class for Ipe's XML parser. It only provides some utility functions for parsing tags and PCDATA. Derived classes implement the actual parsing using recursive descent parsers—after experimenting with various schemes for XML parsing, this seems to work best for Ipe.
-Tag names and attribute names must consist of ASCII letters only. Only entities for '&', '<', and '>' are recognized.
-XmlParser::XmlParser | -( | -DataSource & | -source | ) | -- |
Construct with a data source.
- -Referenced by ipe::XmlAttributes::has().
- -
-
|
- -virtual | -
Virtual destructor, so one can destroy through pointer.
- -
-
|
- -inline | -
Referenced by ipe::Document::formatFromFilename().
- -String XmlParser::parseToTag | -( | -) | -- |
Parse whitespace and the name of a tag.
-Like ParseToTagX, but silently skips over all tags whose name starts with "x-"
- -References ipe::String::size().
- -Referenced by ipe::ImlParser::parseDocument(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parsePageSelection(), ipe::ImlParser::parseStyle(), ipe::ImlParser::parseStyleSheet(), and ipe::ImlParser::parseView().
- -bool XmlParser::parseAttributes | -( | -XmlAttributes & | -attr, | -
- | - | bool | -qm = false |
-
- | ) | -- |
Parse XML attributes.
-Returns with stream just after >. Caller can check whether the tag ended with a / by checking attr.slash().
-Set qm to true to allow a question mark just before the >.
- -References ipe::XmlAttributes::add(), ipe::XmlAttributes::clear(), ipe::String::empty(), and ipe::XmlAttributes::setSlash().
- -Referenced by ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseDocument(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parsePageSelection(), ipe::ImlParser::parseStyle(), ipe::ImlParser::parseStyleSheet(), and ipe::ImlParser::parseView().
- -Parse PCDATA.
-Checks whether the data is terminated by </tag>
, and returns with stream past the >.
References ipe::String::size().
- -Referenced by ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseDocument(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), and ipe::ImlParser::parseStyle().
- -
-
|
- -inline | -
-
|
- -inline | -
-
|
- -inline | -
void XmlParser::skipWhitespace | -( | -) | -- |
-
|
- -protected | -
Parse whitespace and the name of a tag.
-If the tag is a closing tag, skips > and returns with stream after that. Otherwise, returns with stream just after the tag name.
-Comments and <!TAG .. > are skipped silently.
- -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
-
|
- -protected | -
- Ipelib
-
- |
-
This is the complete list of members for ipe::XmlParser, including all inherited members.
-eos() | ipe::XmlParser | inline |
getChar() | ipe::XmlParser | inline |
iCh | ipe::XmlParser | protected |
iPos | ipe::XmlParser | protected |
iSource | ipe::XmlParser | protected |
isTagChar(int ch) | ipe::XmlParser | inline |
iTopElement | ipe::XmlParser | protected |
parseAttributes(XmlAttributes &attr, bool qm=false) | ipe::XmlParser | |
parsePCDATA(String tag, String &pcdata) | ipe::XmlParser | |
parsePosition() const | ipe::XmlParser | inline |
parseToTag() | ipe::XmlParser | |
parseToTagX() | ipe::XmlParser | protected |
skipWhitespace() | ipe::XmlParser | |
XmlParser(DataSource &source) | ipe::XmlParser | |
~XmlParser() | ipe::XmlParser | virtual |
- Ipelib
-
- |
-
#include <ipepdfview_cocoa.h>
Inherits ipe::PdfViewBase.
--Public Member Functions | |
PdfView (IpePdfView *view) | |
virtual | ~PdfView () |
void | drawRect (NSRect rect) |
Public Member Functions inherited from ipe::PdfViewBase | |
virtual | ~PdfViewBase () |
void | setPdf (const PdfFile *pdf, Fonts *fonts) |
void | setPage (const PdfDict *page, const Rect &paper) |
void | setBackground (const Color &bg) |
void | setBlackout (bool bo) |
Vector | pan () const |
double | zoom () const |
Vector | center () const |
int | viewWidth () const |
int | viewHeight () const |
bool | blackout () const |
Vector | devToUser (const Vector &arg) const |
Vector | userToDev (const Vector &arg) const |
void | setPan (const Vector &v) |
void | setZoom (double zoom) |
Matrix | canvasTfm () const |
void | updatePdf () |
-Additional Inherited Members | |
Protected Member Functions inherited from ipe::PdfViewBase | |
PdfViewBase () | |
void | drawPaper (cairo_t *cc) |
void | refreshSurface () |
Protected Attributes inherited from ipe::PdfViewBase | |
double | iWidth |
double | iHeight |
double | iBWidth |
double | iBHeight |
Vector | iPan |
double | iZoom |
Color | iBackground |
bool | iBlackout |
bool | iRepaint |
cairo_surface_t * | iSurface |
std::unique_ptr< Cascade > | iCascade |
const PdfDict * | iPage |
Rect | iPaperBox |
const PdfDict * | iStream |
const PdfFile * | iPdf |
Fonts * | iFonts |
PdfView::PdfView | -( | -IpePdfView * | -view | ) | -- |
-
|
- -virtual | -
void PdfView::drawRect | -( | -NSRect | -rect | ) | -- |
- Ipelib
-
- |
-
This is the complete list of members for PdfView, including all inherited members.
-blackout() const | ipe::PdfViewBase | inline |
canvasTfm() const | ipe::PdfViewBase | |
center() const | ipe::PdfViewBase | inline |
devToUser(const Vector &arg) const | ipe::PdfViewBase | |
drawPaper(cairo_t *cc) | ipe::PdfViewBase | protected |
drawRect(NSRect rect) | PdfView | |
iBackground | ipe::PdfViewBase | protected |
iBHeight | ipe::PdfViewBase | protected |
iBlackout | ipe::PdfViewBase | protected |
iBWidth | ipe::PdfViewBase | protected |
iCascade | ipe::PdfViewBase | protected |
iFonts | ipe::PdfViewBase | protected |
iHeight | ipe::PdfViewBase | protected |
iPage | ipe::PdfViewBase | protected |
iPan | ipe::PdfViewBase | protected |
iPaperBox | ipe::PdfViewBase | protected |
iPdf | ipe::PdfViewBase | protected |
iRepaint | ipe::PdfViewBase | protected |
iStream | ipe::PdfViewBase | protected |
iSurface | ipe::PdfViewBase | protected |
iWidth | ipe::PdfViewBase | protected |
iZoom | ipe::PdfViewBase | protected |
pan() const | ipe::PdfViewBase | inline |
PdfView(IpePdfView *view) | PdfView | |
PdfViewBase() | ipe::PdfViewBase | protected |
refreshSurface() | ipe::PdfViewBase | protected |
setBackground(const Color &bg) | ipe::PdfViewBase | |
setBlackout(bool bo) | ipe::PdfViewBase | |
setPage(const PdfDict *page, const Rect &paper) | ipe::PdfViewBase | |
setPan(const Vector &v) | ipe::PdfViewBase | |
setPdf(const PdfFile *pdf, Fonts *fonts) | ipe::PdfViewBase | |
setZoom(double zoom) | ipe::PdfViewBase | |
updatePdf() | ipe::PdfViewBase | |
userToDev(const Vector &arg) const | ipe::PdfViewBase | |
viewHeight() const | ipe::PdfViewBase | inline |
viewWidth() const | ipe::PdfViewBase | inline |
zoom() const | ipe::PdfViewBase | inline |
~PdfView() | PdfView | virtual |
~PdfViewBase() | ipe::PdfViewBase | virtual |
- Ipelib
-
- |
-
As in Ipe 6, it is possible to write ipelets entirely in C++. Different from Ipe 6, however, the labels of the ipelet and its functions must now be specified in a short Lua wrapper with some boilerplate code. This Lua code will invoke your C++ methods.
-The C++ code is in a dynamically loaded library (DLL), that you place on Ipe's C++ ipelet path. The DLL has to be written in C++, and must export a function newIpelet
that creates an object derived from the class Ipelet
(defined in ipelet.h). Here is a minimal ipelet implementation:
#include "ipelet.h" - -class MyIpelet : public ipe::Ipelet { -public: - virtual int ipelibVersion() const { return IPELIB_VERSION; } - virtual bool run(int function, ipe::IpeletData *data, ipe::IpeletHelper *helper); -}; - -bool MyIpelet::run(int function, ipe::IpeletData *data, ipe::IpeletHelper *helper) -{ - // this is where you do all the work -} - -IPELET_DECLARE ipe::Ipelet *newIpelet() -{ - return new MyIpelet; -} -
When the ipelet is executed, Ipe hands it a structure with some information about the document, in particular a pointer to the current page. The ipelet can examine the selected objects, and modify the page in any way it wishes. (It is not possible to modify the document outside the current page, as this would interfere with the undo stack). It can also request services from the Ipe application through the IpeletHelper
object, for instance to display a message in the status bar, to pop up message boxes and to obtain input from the user.
The run method must return true if it modified the document page. This is used to create an item on the undo stack so that this change can be undone. If the run method returns false, then no undo stack item is created. In this case, the ipelet must not modify the page.
-You need to provide a small Lua wrapper that declares the names of the ipelet and its methods, and that calls your C++ code when an ipelet method is invoked. This wrapper will look as follows:
--- Lua wrapper for C++ ipelet "myipelet" - -label = "My Ipelet" - -about = "This ipelet is for explanation only" - --- this variable will store the C++ ipelet when it has been loaded -ipelet = false - -function run(ui, num) - if not ipelet then ipelet = assert(loadIpelet("myipelet")) - model:runIpelet(ipelet, num) -end - -methods = { { label = "First function of my ipelet" }, - { label = "Second function of my ipelet" } - } -
If the ipelet contains only a single method, then the methods
table is omitted.
The Lua wrapper needs to be placed in Ipe's ipelet directory. When Ipe starts up, it automatically loads all ipelets from this directory. Note that the wrapper above does not immediately load the C++ ipelet (using loadIpelet
) when the Lua wrapper is loaded by Ipe, but only when the first method of the ipelet is called. This is considered good style.
Your Lua wrapper can include a table with key/value pairs that the C++ code can examine to set parameters or otherwise decide what to do without recompiling the C++ code.
-The table is passed as an additional argument to model:runIpelet. You can retrieve the value for a given key using the ipe::IpeletHelper.getParameter method.
-Kgon is a minimal ipelet that you can use as the basis for your own development. It defines only a single function, and makes no use of the function argument to run
. It does show how to pass parameters from the Lua wrapper to the C++ code.
The Lua wrapper would look like this:
-The ipelet must be compiled as a shared library and must be linked with the Ipe library libipe.so. C++ mandates that it must be compiled with the same compiler that was used to compile Ipe. Have a look at the ipelet sources in the Ipe source distribution, and their makefiles for details on compiling them.
-The ipelet must be compiled as a DLL and must be linked with the Ipe library ipe.dll. C++ mandates that it must be compiled with the same compiler that was used to compile Ipe. If you use the binary Ipe distribution for Windows, that means you have to use the g++-mingw-w64-x86-64 toolchain. Place the resulting kgon.dll in the ipelets subdirectory, and restart Ipe.
-If you write an ipelet in C++, you probably want to link with some existing C++ library or framework such as CGAL, and the loader needs to find this framework when it loads the ipelet.
-On MacOS, you would for instance have a setting like this to tell the loader where to find shared libraries:
$ export DYLD_LIBRARY_PATH=$CGAL_DIR/lib -
Unfortunately, OSX integrity protection makes it impossible to specify such a setting inside Ipe, in ipe.conf, or in Ipe's Info.plist file.
-You can set the environment variable when you call Ipe from the command line, but when starting Ipe from the Finder this does not work.
-One clean solution is to make sure the path of the shared library is hard-coded in the ipelet, using otool and install_name_tool on OSX.
-A simpler solution is to make a dynamic link like this:
-$ ln -s $HOME/CGAL/build/4.13R/lib $HOME/lib -
Since $HOME/lib is searched by dlopen, this will work. You can check which paths are searched when Ipe loads an ipelet by setting this environment variable (and running Ipe from the command line):
-$ export DYLD_PRINT_LIBRARIES=1 -
- Ipelib
-
- |
-
-Files | |
file | ipecairopainter.cpp |
file | ipecairopainter.h |
file | ipefonts.cpp |
file | ipefonts.h |
file | ipethumbs.cpp |
file | ipethumbs.h |
- Ipelib
-
- |
-
-Files | |
file | ipecanvas.cpp |
file | ipecanvas.h |
file | ipecanvas_cocoa.cpp |
file | ipecanvas_cocoa.h |
file | ipecanvas_gtk.cpp |
file | ipecanvas_gtk.h |
file | ipecanvas_qt.cpp |
file | ipecanvas_qt.h |
file | ipecanvas_win.cpp |
file | ipecanvas_win.h |
file | ipepdfview.cpp |
file | ipepdfview.h |
file | ipepdfview_cocoa.cpp |
file | ipepdfview_cocoa.h |
file | ipepdfview_qt.cpp |
file | ipepdfview_qt.h |
file | ipepdfview_win.cpp |
file | ipepdfview_win.h |
file | ipeselector_cocoa.cpp |
file | ipeselector_cocoa.h |
file | ipeselector_gtk.cpp |
file | ipeselector_qt.cpp |
file | ipeselector_qt.h |
file | ipeselector_win.cpp |
file | ipetool.cpp |
file | ipetool.h |
- Ipelib
-
- |
-
-Files | |
file | ipeattributes.h |
file | ipebase.h |
file | ipebitmap.h |
file | ipedoc.h |
file | ipefactory.h |
file | ipegeo.h |
file | ipegroup.h |
file | ipeimage.h |
file | ipeiml.h |
file | ipelatex.h |
file | ipelet.h |
file | ipelib.h |
file | ipeobject.h |
file | ipeosx.h |
file | ipepage.h |
file | ipepainter.h |
file | ipepath.h |
file | ipepdfparser.h |
file | ipepdfwriter.h |
file | ipepswriter.h |
file | ipereference.h |
file | iperesources.h |
file | ipeshape.h |
file | ipesnap.h |
file | ipestyle.h |
file | ipetext.h |
file | ipetoolbase.h |
file | ipeutils.h |
file | ipexml.h |
8.6 Filming from the canvas |
Some Ipe users make presentation videos directly from Ipe, as follows: -
prefs.win_toolbar_order
;
-For this to work well, it is essential that the width of the canvas
-remains fixed while you step through your document. Try it before you
-start filming! You can change the contents of the "View" and "Page"
-buttons by changing the preferences prefs.view_button_prefix
and
-prefs.page_button_prefix
. Furthermore, on MacOS, you can force the
-canvas width to remain fixed by making prefs.osx_properties_width
-large enough.
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
- Ipelib
-
- |
-
-Classes | |
struct | ipe::Tiling |
struct | ipe::Gradient |
struct | ipe::Layout |
struct | ipe::TextPadding |
class | ipe::Color |
class | ipe::Effect |
class | ipe::Repository |
class | ipe::Attribute |
class | ipe::AllAttributes |
class | ipe::Symbol |
-Typedefs | |
typedef std::vector< Attribute > | ipe::AttributeSeq |
-Enumerations | |
enum | ipe::Kind { - ipe::EPen = 0, -ipe::ESymbolSize, -ipe::EArrowSize, -ipe::EColor, - - ipe::EDashStyle, -ipe::ETextSize, -ipe::ETextStretch, -ipe::ETextStyle, - - ipe::ELabelStyle, -ipe::EGridSize, -ipe::EAngleSize, -ipe::EOpacity, - - ipe::ETiling, -ipe::ESymbol, -ipe::EGradient, -ipe::EEffect - - } |
enum | ipe::Property { - ipe::EPropPen = 0, -ipe::EPropSymbolSize, -ipe::EPropFArrow, -ipe::EPropRArrow, - - ipe::EPropFArrowSize, -ipe::EPropRArrowSize, -ipe::EPropFArrowShape, -ipe::EPropRArrowShape, - - ipe::EPropStrokeColor, -ipe::EPropFillColor, -ipe::EPropMarkShape, -ipe::EPropPathMode, - - ipe::EPropDashStyle, -ipe::EPropTextSize, -ipe::EPropTextStyle, -ipe::EPropLabelStyle, - - ipe::EPropOpacity, -ipe::EPropStrokeOpacity, -ipe::EPropTiling, -ipe::EPropGradient, - - ipe::EPropHorizontalAlignment, -ipe::EPropVerticalAlignment, -ipe::EPropLineJoin, -ipe::EPropLineCap, - - ipe::EPropFillRule, -ipe::EPropPinned, -ipe::EPropTransformations, -ipe::EPropTransformableText, - - ipe::EPropSplineType, -ipe::EPropMinipage, -ipe::EPropWidth, -ipe::EPropDecoration - - } |
enum | ipe::TPathMode { ipe::EStrokedOnly, -ipe::EStrokedAndFilled, -ipe::EFilledOnly - } |
enum | ipe::THorizontalAlignment { ipe::EAlignLeft, -ipe::EAlignRight, -ipe::EAlignHCenter - } |
enum | ipe::TVerticalAlignment { ipe::EAlignBottom, -ipe::EAlignBaseline, -ipe::EAlignTop, -ipe::EAlignVCenter - } |
enum | ipe::TSplineType { ipe::EBSpline, -ipe::ECardinalSpline, -ipe::ESpiroSpline - } |
enum | ipe::TLineJoin { ipe::EDefaultJoin, -ipe::EMiterJoin, -ipe::ERoundJoin, -ipe::EBevelJoin - } |
enum | ipe::TLineCap { ipe::EDefaultCap, -ipe::EButtCap, -ipe::ERoundCap, -ipe::ESquareCap - } |
enum | ipe::TFillRule { ipe::EDefaultRule, -ipe::EWindRule, -ipe::EEvenOddRule - } |
enum | ipe::TPinned { ipe::ENoPin = 0x00, -ipe::EHorizontalPin = 0x01, -ipe::EVerticalPin = 0x02, -ipe::EFixedPin = 0x03 - } |
enum | ipe::TTransformations { ipe::ETransformationsTranslations, -ipe::ETransformationsRigidMotions, -ipe::ETransformationsAffine - } |
enum | ipe::TSelect { ipe::ENotSelected = 0, -ipe::EPrimarySelected, -ipe::ESecondarySelected - } |
-Variables | |
const char *const | ipe::kind_names [] |
const char *const | ipe::property_names [] |
Attributes for Ipe objects.
-Ipe objects have attributes such as color, line width, dash pattern, etc. Most attributes can be symbolic (the need to be looked up in a style sheet before rendering) or absolute.
-The Color class represents absolute values of colors. The class Attribute encapsulates all attributes that can be either symbolic or absolute.
-The Lua bindings for attributes are described here.
-ipe::AttributeSeq | -
A sequence of attribute values.
- -enum ipe::Kind | -
The different kinds of attributes.The same symbolic attribute (say "normal") has a different value in the StyleSheet depending on the Kind of attribute. The main use for Kind is as an argument to StyleSheet::find.
-ESymbol, EGradient, ETiling, and EEffect have their own lookup methods in the StyleSheet. The values are still useful as an argument to allNames(), has(), and findDefinition().
-Enumerator | |
---|---|
EPen | |
ESymbolSize | |
EArrowSize | |
EColor | |
EDashStyle | |
ETextSize | |
ETextStretch | |
ETextStyle | |
ELabelStyle | |
EGridSize | |
EAngleSize | |
EOpacity | |
ETiling | |
ESymbol | |
EGradient | |
EEffect |
enum ipe::Property | -
A Property identifies an attribute that an object can have.The Property identifies a unique attribute of an object, while different Property values can be of the same ipe::Kind. For instance, both EPropStrokeColor and EPropFillColor identify an Attribute of Kind EColor.
-Enumerator | |
---|---|
EPropPen | |
EPropSymbolSize | |
EPropFArrow | |
EPropRArrow | |
EPropFArrowSize | |
EPropRArrowSize | |
EPropFArrowShape | |
EPropRArrowShape | |
EPropStrokeColor | |
EPropFillColor | |
EPropMarkShape | |
EPropPathMode | |
EPropDashStyle | |
EPropTextSize | |
EPropTextStyle | |
EPropLabelStyle | |
EPropOpacity | |
EPropStrokeOpacity | |
EPropTiling | |
EPropGradient | |
EPropHorizontalAlignment | |
EPropVerticalAlignment | |
EPropLineJoin | |
EPropLineCap | |
EPropFillRule | |
EPropPinned | |
EPropTransformations | |
EPropTransformableText | |
EPropSplineType | |
EPropMinipage | |
EPropWidth | |
EPropDecoration |
enum ipe::TPathMode | -
Path mode (stroked, filled, or both).
-Enumerator | |
---|---|
EStrokedOnly | |
EStrokedAndFilled | |
EFilledOnly |
enum ipe::THorizontalAlignment | -
enum ipe::TVerticalAlignment | -
enum ipe::TSplineType | -
enum ipe::TLineJoin | -
Line join style.
-The EDefaultJoin means to use the setting from the style sheet.
-Enumerator | |
---|---|
EDefaultJoin | |
EMiterJoin | |
ERoundJoin | |
EBevelJoin |
enum ipe::TLineCap | -
Line cap style.
-The EDefaultCap means to use the setting from the style sheet.
-Enumerator | |
---|---|
EDefaultCap | |
EButtCap | |
ERoundCap | |
ESquareCap |
enum ipe::TFillRule | -
enum ipe::TPinned | -
enum ipe::TTransformations | -
enum ipe::TSelect | -
const char *const ipe::kind_names | -
Referenced by ipe::StyleSheet::saveAsXml(), and ipe::AttributeMap::saveAsXml().
- -const char *const ipe::property_names | -
- Ipelib
-
- |
-
-Classes | |
class | ipe::String |
class | ipe::Fixed |
class | ipe::Lex |
class | ipe::Buffer |
class | ipe::Stream |
class | ipe::StringStream |
class | ipe::FileStream |
class | ipe::DataSource |
class | ipe::FileSource |
class | ipe::BufferSource |
class | ipe::Bitmap |
class | ipe::Painter |
class | ipe::PdfObj |
class | ipe::PdfNull |
class | ipe::PdfBool |
class | ipe::PdfNumber |
class | ipe::PdfString |
class | ipe::PdfName |
class | ipe::PdfRef |
class | ipe::PdfArray |
class | ipe::PdfDict |
class | ipe::PdfParser |
class | ipe::PdfFile |
class | ipe::Platform |
class | ipe::PdfResourceBase |
class | ipe::PdfResources |
class | ipe::XmlAttributes |
class | ipe::XmlParser |
class | ipe::TellStream |
-Variables | |
const int | ipe::IPELIB_VERSION = 70220 |
const int | ipe::OLDEST_FILE_FORMAT = 70000 |
const int | ipe::FILE_FORMAT = 70218 |
Basic classes for Ipe.
-Some very basic type definitions, streams, lexical analysis, and XML parsing.
-All parts of Ipe make use of the STL. The C++ I/O streams library is not used, as Ipelib doesn't do much I/O. Ipe objects support internalization and externalization through an abstract interface based on ipe::Stream's.
-Clients of Ipelib can use any I/O library that implements this interface. Ipe simply uses cstdio
.
const int ipe::IPELIB_VERSION = 70220 | -
Ipelib version.
- -Referenced by ipe::Platform::initLib(), ipe::Platform::libVersion(), and ipe::ImlParser::parseDocument().
- -const int ipe::OLDEST_FILE_FORMAT = 70000 | -
Oldest readable file format version.
- -Referenced by ipe::ImlParser::parseDocument().
- -const int ipe::FILE_FORMAT = 70218 | -
Current file format version.
- -Referenced by ipe::Document::saveAsXml().
- -
- Ipelib
-
- |
-
-Classes | |
class | ipe::CairoPainter |
class | ipe::Fonts |
class | ipe::Face |
Drawing Ipe objects using the Cairo library.
-This module contains the classes needed to render Ipe objects using the Cairo and Freetype libraries.
-These classes are not in Ipelib, but in a separate library libipecairo.
-
- Ipelib
-
- |
-
-Classes | |
class | ipe::Tool |
class | ipe::Canvas |
class | ipe::PdfViewBase |
class | ipe::PageSelector |
class | ipe::PanTool |
class | ipe::SelectTool |
class | ipe::TransformTool |
A widget (control) that displays an Ipe document page.
-This module contains the classes needed to display and edit Ipe objects using the selected toolkit.
-These classes are not in Ipelib, but in a separate library libipecanvas.
-
- Ipelib
-
- |
-
-Classes | |
class | ipe::Document |
class | ipe::Page |
class | ipe::StyleSheet |
class | ipe::Cascade |
The classes managing an Ipe document.
-The main class, Document, represents an entire Ipe document, and allows you to load, save, access, and modify such a document.
-Other classes represent pages, layers, and views of a document. Another important class is the StyleSheet, which maps symbolic attributes to absolute values.
-
- Ipelib
-
- |
-
-Classes | |
class | ipe::Angle |
class | ipe::Vector |
class | ipe::Rect |
class | ipe::Line |
class | ipe::Segment |
class | ipe::Linear |
class | ipe::Matrix |
class | ipe::Bezier |
class | ipe::Arc |
class | ipe::CurveSegment |
class | ipe::Curve |
class | ipe::SubPath |
class | ipe::Ellipse |
class | ipe::ClosedSpline |
class | ipe::Shape |
-Functions | |
template<class T > | |
T | ipe::max (const T &lhs, const T &rhs) |
template<class T > | |
T | ipe::min (const T &lhs, const T &rhs) |
double | ipe::abs (double val) |
Geometric primitives for Ipe.
-The IpeGeo module provides a few classes for constant-size geometric primitives, such as vector, axis-aligned rectangles, lines, rays, line segments, etc.
-
-
|
- -inline | -
Maximum of two values.
- -Referenced by ipe::PdfThumbnail::PdfThumbnail().
- -
-
|
- -inline | -
Minimum of two values.
- -Referenced by ipe::ipeDebugBuffer().
- -
-
|
- -inline | -
Absolute value.
- -Referenced by ipe::TransformTool::compute(), and ipe::TransformTool::TransformTool().
- -
- Ipelib
-
- |
-
-Classes | |
class | ipe::ObjectFactory |
class | ipe::ImlParser |
class | ipe::Visitor |
class | ipe::Snap |
class | ipe::BitmapFinder |
class | ipe::BBoxPainter |
class | ipe::A85Stream |
class | ipe::Base64Stream |
class | ipe::A85Source |
class | ipe::Base64Source |
class | ipe::DeflateStream |
class | ipe::InflateSource |
Classes to manage Ipe documents and objects.
-This module contains classes used in the implementation of the Ipe program itself. The only classes from this module you may be interested in are Visitor (which is essential to traverse an Ipe object structure), and perhaps Snap (if you are writing an Ipelet whose behavior depends on the current snap setting in the Ipe program).
-
- Ipelib
-
- |
-
-Classes | |
class | ipe::Ipelet |
class | ipe::IpeletHelper |
Implementation of Ipe plugins.
-Ipelets are dynamically loaded plugins for Ipe written in Lua.
-The Ipelet class makes it easy for ipelet authors to write ipelets in C++ without using Lua's C API. They only need to provide some boilerplate Lua code to define the labels and functions of the ipelet, and use the Lua function "loadIpelet" to load a DLL containing a C++ class derived from Ipelet. The run() method of this class can then be called from Lua. The C++ code has access to services provided by Ipe through an IpeletHelper object.
-Ipelet derived classes are restricted to operate on the current page of the document, and cannot modify the StyleSheet or other properties of the document. If you wish to write an ipelet doing this, you need to work in Lua (or create a C++ library using the Lua C API).
-
- Ipelib
-
- |
-
-Classes | |
class | ipe::Group |
class | ipe::Image |
class | ipe::Object |
class | ipe::Path |
class | ipe::Reference |
class | ipe::Text |
The Ipe object model.
-This module deals with the actual objects inside an Ipe document. All Ipe objects are derived from Object.
-
- Ipelib
-
- |
-
Cipe::AllAttributes | Collection of all object attributes |
Cipe::Angle | A double that's an angle |
Cipe::Arc | An arc of an ellipse |
Cipe::Attribute | An attribute of an Ipe Object |
Cipe::AttributeMap | |
Cipe::AttributeMapping | |
Cipe::Bezier | A cubic Bezier spline |
Cipe::Bitmap | A bitmap |
Cipe::Buffer | A memory buffer |
►Cipe::CanvasBase | |
Cipe::CanvasObserver | |
Cipe::Cascade | A cascade of style sheets |
Cipe::Color | An absolute RGB color |
Cipe::CurveSegment | A segment on an SubPath |
►Cipe::DataSource | Interface for getting data for parsing |
Cipe::Document | The model for an Ipe document |
Cipe::Effect | Effect that Acrobat Reader will show on page change |
Cipe::Face | A typeface (aka font), actually loaded (from a font file or PDF file) |
Cipe::Fixed | Fixed point number with three (decimal) fractional digits |
Cipe::Fonts | Provides the fonts used to render text |
Cipe::Gradient | A gradient pattern |
Cipe::Ipelet | Abstract base class for Ipelets |
Cipe::IpeletData | Information provided to an ipelet when it is run |
Cipe::IpeletHelper | Service provider for Ipelets |
Cipe::Latex | Object that converts latex source to PDF format |
Cipe::Layout | Layout of a Page |
Cipe::Lex | Lexical analyser. Seeded with a string |
Cipe::Line | A directed line |
Cipe::Linear | Linear transformation in the plane (2x2 matrix) |
Cipe::Matrix | Homogeneous transformation in the plane |
►Cipe::Object | Base class for all Ipe objects, composite or leaf |
Cipe::ObjectFactory | Factory for Ipe leaf objects |
Cipe::Page | An Ipe document page |
Cipe::StyleSheet::PageNumberStyle | How to show page numbers on the paper |
►Cipe::Painter | Interface for drawing |
Cipe::PdfFile | All information obtained by parsing a PDF file |
►Cipe::PdfObj | Abstract base class for PDF objects |
Cipe::PdfParser | PDF parser |
►Cipe::PdfResourceBase | Base class providing access to PDF objects |
Cipe::PdfThumbnail | |
Cipe::PdfToken | A PDF lexical token |
►Cipe::PdfViewBase | A widget (control) that displays a PDF document |
Cipe::PdfWriter | Create PDF file |
Cipe::Platform | Platform dependent methods |
Cipe::PsWriter | |
►CQListWidget | |
►CQWidget | |
Cipe::Rect | Axis-parallel rectangle (which can be empty) |
Cipe::Repository | Repository of strings |
Cipe::SaveFlag | Flags for saving Ipe documents (to PDF) |
Cipe::Segment | A directed line segment |
Cipe::Shape | A geometric shape, consisting of several (open or closed) subpaths |
Cipe::Snap | Performs snapping operations, and stores snapping state |
Cipe::SelectTool::SObj | |
Cipe::PdfResources::SPageNumber | |
Cipe::Document::SProperties | Properties of a document |
Cipe::Painter::State | |
Cipe::Gradient::Stop | A color stop |
►Cipe::Stream | Abstract base class for output streams |
Cipe::String | Strings and buffers |
Cipe::CanvasBase::Style | |
Cipe::StyleSheet | A style sheet maps symbolic names to absolute values |
►Cipe::SubPath | A subpath of a Path |
Cipe::Symbol | A symbol is a named object defined in an ipe::StyleSheet |
Cipe::TextPadding | Padding for text bounding box |
Cipe::Thumbnail | |
Cipe::Tiling | A tiling pattern |
Cipe::StyleSheet::TitleStyle | Style of the title on a page |
►Cipe::Tool | Abstract base class for various canvas tools |
Cipe::Vector | Two-dimensional vector |
►Cipe::Visitor | Base class for visitors to Object |
Cipe::Text::XForm | |
Cipe::XmlAttributes | Stores attributes of an XML tag |
►Cipe::XmlParser | Base class for XML stream parsing |
- Ipelib
-
- |
-
The Ipe library ("Ipelib") provides the geometric primitives and implements all the geometric objects that appear in Ipe. Many tasks related to modifying an Ipe document are actually performed by Ipelib. For instance, the ipetoipe program consists of only a few calls to Ipelib.
-Ipelib can easily be used by C++ programs to read, write, and modify Ipe documents. Compiling Ipelib is easy, it requires only the standard C++ library (including the STL), and the zlib compression library. Nearly all symbols in Ipelib are in the ipe namespace, those that aren't start with the letters "Ipe".
-Before using Ipelib in your own program, make sure to initialize the library by calling ipe::Platform::initLib().
-Many of the Ipelib classes are also made available as Lua objects. Programming in Lua describes the Lua bindings to Ipelib, to ipeui, and to the Ipe program itself. The Ipe program itself is mostly written in Lua and uses these Lua bindings.
-On Unix, all filenames passed to Ipelib are assumed to be in the local system's encoding. On Windows, all filenames passed to Ipelib are assumed to be UTF-8. All Lua strings are assumed to be UTF-8 (filenames are converted by the ipelua bindings).
-Ipelets explains how to write ipelets, that is, extensions to Ipe. Ipelets are either written in Lua or in C++ (using a small Lua wrapper to describe the ipelet). C++ ipelets have to be linked with Ipelib to access and modify Ipe objects.
-The classes documented here are implemented in five different libraries:
-require
. It is also used by ipescript. Here is an annotated list of the modules:
-Finally, here is list of the pages describing Lua bindings:
-
- Ipelib
-
- |
-
Ipe is an extensible drawing editor, and you can write extensions to Ipe that will appear on the Ipe menu and can be called from inside Ipe like other Ipe functions.
-Ipe extensions are called Ipelets. They are most easily written in the language Lua (www.lua.org), in which also most of Ipe's user interface is written. Lua is a high-level interpreted language, in which interesting classes like vectors, matrices, and Ipe objects are made available. See Programming in Lua for more information about programming with Ipelib in Lua.
-Ipelets written in Lua explains how to write ipelets in Lua.
-Often, however, you will already have code that provides some geometric computation in another programming language such as C++. In such a situation you can create Lua bindings for your code and use it from your Lua ipelet. Creating Lua bindings is not documented here, as Ipe also provides an easier solution that will suffice in many cases. You can implement your ipelet entirely in C++, and only need some boilerplate code in Lua that defines the labels and functions inside the ipelet. Ipe will take care of loading and calling your C++ code.
-Ipelets written in C++ explains how to write ipelets in C++.
-t |