class QPanda::DRAW_TEXT_PIC::Wire¶
Overview¶
the wire of text-picture More…
#include <Draw.h> class Wire { public: // typedefs typedef std::shared_ptr<Wire> sRef; // construction Wire(const std::string& connect_str); // methods virtual void setName(const std::string& name, size_t nameLen); virtual int append(const DrawBox& box, const int box_pos); virtual int getWireLength(); virtual std::string draw(); virtual void updateWireLen(const int len); virtual void setMergedFlag(bool b); virtual const std::string& getTopLine() const; virtual const std::string& getMidLine() const; virtual const std::string& getBotLine() const; int update_time_sequence(unsigned int increase_time_sequence); int get_time_sequence(); };
Detailed Documentation¶
the wire of text-picture
Methods¶
virtual void setName(const std::string& name, size_t nameLen)
set the name of wire
Parameters:
| std::string& | name |
| size_t | name length |
virtual int append(const DrawBox& box, const int box_pos)
append a box to current wire
Parameters:
| DrawBox& | box |
| int | append postion |
Returns:
int the length of current wire
virtual int getWireLength()
get the length of current wire
Returns:
int the length of current wire
virtual std::string draw()
conver current wire to string and save to file
Returns:
std::string
virtual void updateWireLen(const int len)
update current wire length
Parameters:
| int | the new length |
virtual void setMergedFlag(bool b)
set whether to merge wire
Parameters:
| bool |
virtual const std::string& getTopLine() const
get top line string
Returns:
std::string
virtual const std::string& getMidLine() const
get middle line string
Returns:
std::string
virtual const std::string& getBotLine() const
get bottom line string
Returns:
std::string
int update_time_sequence(unsigned int increase_time_sequence)
update current wire time sequence
Parameters:
| int | the increased time sequence |
int get_time_sequence()
get current wire time sequence
Returns:
int