📄 drawable.h
字号:
void y1( double y1_ ){ _y1 = y1_;}double y1( void ) const{ return _y1;}void x2( double x2_ ){ _x2 = x2_;}double x2( void ) const{ return _x2;}void y2( double y2_ ){ _y2 = y2_;}double y2( void ) const{ return _y2;}void x( double x_ ){ _x = x_;}double x( void ) const{ return _x;}void y( double y_ ){ _y = y_;}double y( void ) const{ return _y;}private:double _x1;double _y1;double _x2;double _y2;double _x;double _y;};// Compare two PathCurvetoArgs objects regardless of LHS/RHSMagickDLLDeclExtern int operator == ( const PathCurvetoArgs& left_, const PathCurvetoArgs& right_ );MagickDLLDeclExtern int operator != ( const PathCurvetoArgs& left_, const PathCurvetoArgs& right_ );MagickDLLDeclExtern int operator > ( const PathCurvetoArgs& left_, const PathCurvetoArgs& right_ );MagickDLLDeclExtern int operator < ( const PathCurvetoArgs& left_, const PathCurvetoArgs& right_ );MagickDLLDeclExtern int operator >= ( const PathCurvetoArgs& left_, const PathCurvetoArgs& right_ );MagickDLLDeclExtern int operator <= ( const PathCurvetoArgs& left_, const PathCurvetoArgs& right_ );typedef std::list<Magick::PathCurvetoArgs> PathCurveToArgsList;#if defined(MagickDLLBuild)MagickDrawableExtern template class MagickDLLDeclstd::allocator<Magick::PathCurvetoArgs>;MagickDrawableExtern template class MagickDLLDeclstd::list<Magick::PathCurvetoArgs, std::allocator<Magick::PathCurvetoArgs> >;#endif // MagickDLLBuildclass MagickDLLDecl PathCurvetoAbs : public VPathBase{public: // Draw a single curve PathCurvetoAbs ( const PathCurvetoArgs &args_ ); // Draw multiple curves PathCurvetoAbs ( const PathCurveToArgsList &args_ ); // Copy constructor PathCurvetoAbs ( const PathCurvetoAbs& original_ ); // Destructor /*virtual*/ ~PathCurvetoAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: PathCurveToArgsList _args;};class MagickDLLDecl PathCurvetoRel : public VPathBase{public: // Draw a single curve PathCurvetoRel ( const PathCurvetoArgs &args_ ); // Draw multiple curves PathCurvetoRel ( const PathCurveToArgsList &args_ ); // Copy constructor PathCurvetoRel ( const PathCurvetoRel& original_ ); /*virtual*/ ~PathCurvetoRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: PathCurveToArgsList _args;};class MagickDLLDecl PathSmoothCurvetoAbs : public VPathBase{public: // Draw a single curve PathSmoothCurvetoAbs ( const Magick::Coordinate &coordinates_ ); // Draw multiple curves PathSmoothCurvetoAbs ( const CoordinateList &coordinates_ ); // Copy constructor PathSmoothCurvetoAbs ( const PathSmoothCurvetoAbs& original_ ); /*virtual*/ ~PathSmoothCurvetoAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};class MagickDLLDecl PathSmoothCurvetoRel : public VPathBase{public: // Draw a single curve PathSmoothCurvetoRel ( const Coordinate &coordinates_ ); // Draw multiple curves PathSmoothCurvetoRel ( const CoordinateList &coordinates_ ); // Copy constructor PathSmoothCurvetoRel ( const PathSmoothCurvetoRel& original_ ); // Destructor /*virtual*/ ~PathSmoothCurvetoRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};//// Quadratic Curveto (Quadratic Bezier)//class MagickDLLDecl PathQuadraticCurvetoArgs{public: PathQuadraticCurvetoArgs( void ); PathQuadraticCurvetoArgs( double x1_, double y1_, double x_, double y_ ); PathQuadraticCurvetoArgs( const PathQuadraticCurvetoArgs &original_ ); ~PathQuadraticCurvetoArgs ( void ); void x1( double x1_ ) { _x1 = x1_; } double x1( void ) const { return _x1; } void y1( double y1_ ) { _y1 = y1_; } double y1( void ) const { return _y1; } void x( double x_ ) { _x = x_; } double x( void ) const { return _x; } void y( double y_ ) { _y = y_; } double y( void ) const { return _y; }private: double _x1; double _y1; double _x; double _y;};// Compare two PathQuadraticCurvetoArgs objects regardless of LHS/RHSMagickDLLDeclExtern int operator == ( const PathQuadraticCurvetoArgs& left_, const PathQuadraticCurvetoArgs& right_ );MagickDLLDeclExtern int operator != ( const PathQuadraticCurvetoArgs& left_, const PathQuadraticCurvetoArgs& right_);MagickDLLDeclExtern int operator > ( const PathQuadraticCurvetoArgs& left_, const PathQuadraticCurvetoArgs& right_);MagickDLLDeclExtern int operator < ( const PathQuadraticCurvetoArgs& left_, const PathQuadraticCurvetoArgs& right_);MagickDLLDeclExtern int operator >= ( const PathQuadraticCurvetoArgs& left_, const PathQuadraticCurvetoArgs& right_ );MagickDLLDeclExtern int operator <= ( const PathQuadraticCurvetoArgs& left_, const PathQuadraticCurvetoArgs& right_ );typedef std::list<Magick::PathQuadraticCurvetoArgs> PathQuadraticCurvetoArgsList;#if defined(MagickDLLBuild)MagickDrawableExtern template class MagickDLLDeclstd::allocator<Magick::PathQuadraticCurvetoArgs>;MagickDrawableExtern template class MagickDLLDeclstd::list<Magick::PathQuadraticCurvetoArgs, std::allocator<Magick::PathQuadraticCurvetoArgs> >;#endif // MagickDLLBuildclass MagickDLLDecl PathQuadraticCurvetoAbs : public VPathBase{public: // Draw a single curve PathQuadraticCurvetoAbs ( const Magick::PathQuadraticCurvetoArgs &args_ ); // Draw multiple curves PathQuadraticCurvetoAbs ( const PathQuadraticCurvetoArgsList &args_ ); // Copy constructor PathQuadraticCurvetoAbs ( const PathQuadraticCurvetoAbs& original_ ); // Destructor /*virtual*/ ~PathQuadraticCurvetoAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: PathQuadraticCurvetoArgsList _args;};class MagickDLLDecl PathQuadraticCurvetoRel : public VPathBase{public: // Draw a single curve PathQuadraticCurvetoRel ( const Magick::PathQuadraticCurvetoArgs &args_ ); // Draw multiple curves PathQuadraticCurvetoRel ( const PathQuadraticCurvetoArgsList &args_ ); // Copy constructor PathQuadraticCurvetoRel ( const PathQuadraticCurvetoRel& original_ ); // Destructor /*virtual*/ ~PathQuadraticCurvetoRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: PathQuadraticCurvetoArgsList _args;};class MagickDLLDecl PathSmoothQuadraticCurvetoAbs : public VPathBase{public: // Draw a single curve PathSmoothQuadraticCurvetoAbs ( const Magick::Coordinate &coordinate_ ); // Draw multiple curves PathSmoothQuadraticCurvetoAbs ( const CoordinateList &coordinates_ ); // Copy constructor PathSmoothQuadraticCurvetoAbs ( const PathSmoothQuadraticCurvetoAbs& original_ ); // Destructor /*virtual*/ ~PathSmoothQuadraticCurvetoAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};class MagickDLLDecl PathSmoothQuadraticCurvetoRel : public VPathBase{public: // Draw a single curve PathSmoothQuadraticCurvetoRel ( const Magick::Coordinate &coordinate_ ); // Draw multiple curves PathSmoothQuadraticCurvetoRel ( const CoordinateList &coordinates_ ); // Copy constructor PathSmoothQuadraticCurvetoRel ( const PathSmoothQuadraticCurvetoRel& original_ ); // Destructor /*virtual*/ ~PathSmoothQuadraticCurvetoRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};//// Path Lineto//class MagickDLLDecl PathLinetoAbs : public VPathBase{public: // Draw to a single point PathLinetoAbs ( const Magick::Coordinate& coordinate_ ); // Draw to multiple points PathLinetoAbs ( const CoordinateList &coordinates_ ); // Copy constructor PathLinetoAbs ( const PathLinetoAbs& original_ ); // Destructor /*virtual*/ ~PathLinetoAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};class MagickDLLDecl PathLinetoRel : public VPathBase{public: // Draw to a single point PathLinetoRel ( const Magick::Coordinate& coordinate_ ); // Draw to multiple points PathLinetoRel ( const CoordinateList &coordinates_ ); // Copy constructor PathLinetoRel ( const PathLinetoRel& original_ ); // Destructor /*virtual*/ ~PathLinetoRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};// Path Horizontal Linetoclass MagickDLLDecl PathLinetoHorizontalAbs : public VPathBase{public: PathLinetoHorizontalAbs ( double x_ ) : _x(x_) { } /*virtual*/ ~PathLinetoHorizontalAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const; void x( double x_ ) { _x = x_; } double x( void ) const { return _x; }private: double _x;};class MagickDLLDecl PathLinetoHorizontalRel : public VPathBase{public: PathLinetoHorizontalRel ( double x_ ) : _x(x_) { } /*virtual*/ ~PathLinetoHorizontalRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const; void x( double x_ ) { _x = x_; } double x( void ) const { return _x; }private: double _x;};// Path Vertical Linetoclass MagickDLLDecl PathLinetoVerticalAbs : public VPathBase{public: PathLinetoVerticalAbs ( double y_ ) : _y(y_) { } /*virtual*/ ~PathLinetoVerticalAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const; void y( double y_ ) { _y = y_; } double y( void ) const { return _y; }private: double _y;};class MagickDLLDecl PathLinetoVerticalRel : public VPathBase{public: PathLinetoVerticalRel ( double y_ ) : _y(y_) { } /*virtual*/ ~PathLinetoVerticalRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const; void y( double y_ ) { _y = y_; } double y( void ) const { return _y; }private: double _y;};// Path Movetoclass MagickDLLDecl PathMovetoAbs : public VPathBase{public: // Simple moveto PathMovetoAbs ( const Magick::Coordinate &coordinate_ ); // Moveto followed by implicit linetos PathMovetoAbs ( const CoordinateList &coordinates_ ); // Copy constructor PathMovetoAbs ( const PathMovetoAbs& original_ ); // Destructor /*virtual*/ ~PathMovetoAbs ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};class MagickDLLDecl PathMovetoRel : public VPathBase{public: // Simple moveto PathMovetoRel ( const Magick::Coordinate &coordinate_ ); // Moveto followed by implicit linetos PathMovetoRel ( const CoordinateList &coordinates_ ); // Copy constructor PathMovetoRel ( const PathMovetoRel& original_ ); // Destructor /*virtual*/ ~PathMovetoRel ( void ); // Operator to invoke equivalent draw API call /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const; // Return polymorphic copy of object /*virtual*/ VPathBase* copy() const;private: CoordinateList _coordinates;};} // namespace Magick#endif // Magick_Drawable_header
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -