113 if (strchr(
buf,
'.') !=
NULL) {
144 const double rad =
m_Rot * 3.1415926535 / 180;
145 const double c = cos(rad);
146 const double s = sin(rad);
147 stream << setiosflags(ios::fixed) <<
CPdfNumber(c) <<
180 stream <<
"1 0 0 1 " << setiosflags(ios::fixed)
191 stream << setiosflags(ios::fixed);
195 for (
int c=0; c<3; ++c)
196 for (
int r=0;
r<2; ++
r)
199 stream <<
" cm" <<
pdfeol;
210 stream << setiosflags(ios::fixed);
212 for (
int c=0; c<3; ++c)
213 for (
int r=0;
r<2; ++
r) {
217 stream <<
" Tm" <<
pdfeol;
234 stream <<
'(' <<
m_Str <<
')';
250 stream <<
'/' <<
m_Str;
302 array->m_Array.begin(),
array->m_Array.end());
323 bool insert_space =
false;
329 stream <<
'/' << it->first;
virtual void PrintTo(CNcbiOstream &stream) const
void Add(const CRef< CPdfArray > &arr)
vector< TPdfEltRef > TArray
string GenShaderID()
Get a new (unique) shader ID of form sh##.
void Add(const CRef< CPdfDictionary > &dict)
TPdfEltRef & operator[](const string &key)
virtual void PrintTo(CNcbiOstream &stream) const
int m_MaxShaderID
Shaders need unique ID strings which will use this #.
virtual void PrintTo(CNcbiOstream &stream) const
virtual string GetValue(void) const
virtual void PrintTo(CNcbiOstream &stream) const
CPdfIndirectObj(const CRef< CPdfObject > &obj)
virtual ~CPdfIndirectObj()
virtual void PrintTo(CNcbiOstream &stream) const
CPdfName(const string &str)
virtual void PrintTo(CNcbiOstream &stream) const
CPdfNumber(double d, int precision=-1)
unsigned int GetObjNum(void) const
unsigned int GetGeneration(void) const
virtual void PrintTo(CNcbiOstream &stream) const
CPdfString(const string &str)
virtual void PrintTo(CNcbiOstream &stream) const
virtual void PrintTo(CNcbiOstream &stream) const
CPdfTextTransform(const CMatrix3< double > &m)
virtual void PrintTo(CNcbiOstream &stream) const
CPdfTranslate(double xoff, double yoff)
iterator_bool insert(const value_type &val)
static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::KEY key
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
CNcbiOstream & pdfeol(CNcbiOstream &strm)
static const char * str(char *buf, int n)