#include <XObjInst.hh>
Collaboration diagram for pdf::page::CXObjInst:
this class represents an instance of an xobject inside a page. it contains information of drawing an xobject on a page. a page can contain multiple instance of the same xobject, such that the same xobject will be drawn more than once.
the CXObjInst class contains a pointer to an xobject as well as a transformation matrix. before the xobject is drawn the transformation matrix will be applied. you should use the transformation matrix to specify position and size of the xobject's appearance.
|
this constructor will calculate a transformation from its parameters.
00045 : m_transform( width, 0, 0, height, x, y ), m_xobj( xobj ) 00046 { 00047 assert( xobj != 0 ) ; 00048 } |
|
this constructor will copy the parameters to the members.
00057 : m_transform( transform ), m_xobj( xobj ) 00058 { 00059 assert( xobj != 0 ) ; 00060 } |
|
destructor does nothing.
00065 { 00066 } |
|
write the code to draw an xobject to the output stream. note that this function will not print the content of the xobject to the output stream.
00075 { 00076 assert( m_xobj != 0 ) ; 00077 00078 return os << "q\n" << m_transform << " cm\n" << m_xobj->Name( ) 00079 << " Do\nQ\n" ; 00080 } |
|
returns the underlying xobject pointer.
|
|
transformation matrix
|
|
the underlying xobject
|