.. index:: pair: class; QPanda::DRAW_TEXT_PIC::DrawQProg .. _doxid-class_q_panda_1_1_d_r_a_w___t_e_x_t___p_i_c_1_1_draw_q_prog: class QPanda::DRAW_TEXT_PIC::DrawQProg ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ draw Qprog by text :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class DrawQProg { public: // construction :ref:`DrawQProg`( :ref:`QProg`& prg, const :ref:`NodeIter` node_itr_start, const :ref:`NodeIter` node_itr_end, bool b_out_put_to_file = false ); // methods std::string :ref:`textDraw`(:ref:`TEXT_PIC_TYPE` t, uint32_t length = 100, const std::string config_data = :ref:`CONFIG_PATH`); }; .. _details-class_q_panda_1_1_d_r_a_w___t_e_x_t___p_i_c_1_1_draw_q_prog: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ draw Qprog by text Construction ------------ .. index:: pair: function; DrawQProg .. _doxid-class_q_panda_1_1_d_r_a_w___t_e_x_t___p_i_c_1_1_draw_q_prog_1ab68cd814402b61873a8555db992b673a: .. ref-code-block:: cpp :class: doxyrest-title-code-block DrawQProg( :ref:`QProg`& prg, const :ref:`NodeIter` node_itr_start, const :ref:`NodeIter` node_itr_end, bool b_out_put_to_file = false ) Constructor of :ref:`DrawQProg `. Methods ------- .. index:: pair: function; textDraw .. _doxid-class_q_panda_1_1_d_r_a_w___t_e_x_t___p_i_c_1_1_draw_q_prog_1a2d00a58f510bdb67b953bb0b7747021d: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string textDraw( :ref:`TEXT_PIC_TYPE` t, uint32_t length = 100, const std::string config_data = :ref:`CONFIG_PATH` ) Draw text-picture. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - TEXT_PIC_TYPE - draw type * - const - std::string It can be configuration file or configuration data, which can be distinguished by file suffix, so the configuration file must be end with ".json", default is CONFIG_PATH .. rubric:: Returns: std::string the text-picture .. rubric:: See also: :ref:`TEXT_PIC_TYPE `