tdraw

package module
v0.0.0-...-1c42f91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

README

tdraw

介绍

tikz drawer 接口

软件架构

软件架构说明

安装教程
  1. xxxx
  2. xxxx
  3. xxxx
使用说明
  1. xxxx
  2. xxxx
  3. xxxx
参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
特技
  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AniDrawer

type AniDrawer interface {
	Drawer
	StartAnimate()
	NextFrame()
}

type Arrow

type Arrow int
const (
	NoArrow     Arrow = 0
	LeftArrow   Arrow = 1
	NormalArrow Arrow = 2
)

type Drawer

type Drawer interface {
	MakeNode(loc []float64, size float64, text []string, shape Shape, style int) (ind int)
	DrawNodeLine(i1, i2 int, arrow Arrow, text string, width float64, style int)
	DrawLine(p1, p2 []float64, arrow Arrow, text string, width float64, style int)
	DrawPoint(loc []float64, size float64, style int)
	GetNumStyle() int
	Finish()
}

type Shape

type Shape int
const (
	Invisible Shape = 0 // valid parameters: loc
	Rectangle Shape = 1 // valid parameters: loc, size, text, style (at most 4 text)
	Circle    Shape = 2 // valid parameters: loc, size, text, style (at most 2 text)
	TextBox   Shape = 3 // valid parameters: loc, text (only 1 text)
)

type TikzAniDrawer

type TikzAniDrawer struct {
	*TikzDrawer
	// contains filtered or unexported fields
}

func InitTikzAniDrawer

func InitTikzAniDrawer(fprep string, scale float64, bound [][]float64) *TikzAniDrawer

func (*TikzAniDrawer) NextFrame

func (tad *TikzAniDrawer) NextFrame()

func (*TikzAniDrawer) StartAnimate

func (tad *TikzAniDrawer) StartAnimate()

type TikzDrawer

type TikzDrawer struct {
	// contains filtered or unexported fields
}

func InitTikzDrawer

func InitTikzDrawer(fout_name string, scale float64, bound [][]float64) *TikzDrawer

func (*TikzDrawer) DrawLine

func (td *TikzDrawer) DrawLine(p1, p2 []float64, arrow Arrow, text string, width float64, style int)

func (*TikzDrawer) DrawNodeLine

func (td *TikzDrawer) DrawNodeLine(i1, i2 int, arrow Arrow, text string, width float64, style int)

func (*TikzDrawer) DrawPoint

func (td *TikzDrawer) DrawPoint(loc []float64, size float64, style int)

func (*TikzDrawer) Finish

func (td *TikzDrawer) Finish()

func (*TikzDrawer) GetNumStyle

func (td *TikzDrawer) GetNumStyle() int

func (*TikzDrawer) MakeNode

func (td *TikzDrawer) MakeNode(loc []float64, size float64, text []string, shape Shape, style int) (ind int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL