stl2svx

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stl2svx is a generated protocol buffer package.

It is generated from these files:

stl2svx.proto

It has these top-level messages:

NewJobRequest
NewJobResponse
RegisterAgentRequest
RegisterAgentResponse
SliceJobRequest
SliceJobResponse
STLFile
Triangle
Vertex

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAgentServer

func RegisterAgentServer(s *grpc.Server, srv AgentServer)

func RegisterMasterServer

func RegisterMasterServer(s *grpc.Server, srv MasterServer)

Types

type AgentClient

type AgentClient interface {
	// SliceJob slices an entire job at the given Z height and returns the image.
	SliceJob(ctx context.Context, in *SliceJobRequest, opts ...grpc.CallOption) (*SliceJobResponse, error)
}

func NewAgentClient

func NewAgentClient(cc *grpc.ClientConn) AgentClient

type AgentServer

type AgentServer interface {
	// SliceJob slices an entire job at the given Z height and returns the image.
	SliceJob(context.Context, *SliceJobRequest) (*SliceJobResponse, error)
}

type MasterClient

type MasterClient interface {
	// NewJob starts a new job from the client.
	NewJob(ctx context.Context, in *NewJobRequest, opts ...grpc.CallOption) (*NewJobResponse, error)
	// RegisterAgent notifies the master that a new agent is ready.
	RegisterAgent(ctx context.Context, in *RegisterAgentRequest, opts ...grpc.CallOption) (*RegisterAgentResponse, error)
}

func NewMasterClient

func NewMasterClient(cc *grpc.ClientConn) MasterClient

type MasterServer

type MasterServer interface {
	// NewJob starts a new job from the client.
	NewJob(context.Context, *NewJobRequest) (*NewJobResponse, error)
	// RegisterAgent notifies the master that a new agent is ready.
	RegisterAgent(context.Context, *RegisterAgentRequest) (*RegisterAgentResponse, error)
}

type NewJobRequest

type NewJobRequest struct {
	StlFiles []*STLFile `protobuf:"bytes,1,rep,name=stl_files,json=stlFiles" json:"stl_files,omitempty"`
	Dim      int64      `protobuf:"varint,2,opt,name=dim" json:"dim,omitempty"`
	// The number of divisions across each dimension. Ideally, this would be
	// calculated by the master based upon the size and complexity of the model,
	// but for now let the client decide so that it is easy to run experiments
	// without having to change the server.
	NX        int64  `protobuf:"varint,3,opt,name=n_x,json=nX" json:"n_x,omitempty"`
	NY        int64  `protobuf:"varint,4,opt,name=n_y,json=nY" json:"n_y,omitempty"`
	NZ        int64  `protobuf:"varint,5,opt,name=n_z,json=nZ" json:"n_z,omitempty"`
	OutPrefix string `protobuf:"bytes,6,opt,name=out_prefix,json=outPrefix" json:"out_prefix,omitempty"`
}

NewJobRequest is the request to start a new job.

func (*NewJobRequest) Descriptor

func (*NewJobRequest) Descriptor() ([]byte, []int)

func (*NewJobRequest) GetDim

func (m *NewJobRequest) GetDim() int64

func (*NewJobRequest) GetNX

func (m *NewJobRequest) GetNX() int64

func (*NewJobRequest) GetNY

func (m *NewJobRequest) GetNY() int64

func (*NewJobRequest) GetNZ

func (m *NewJobRequest) GetNZ() int64

func (*NewJobRequest) GetOutPrefix

func (m *NewJobRequest) GetOutPrefix() string

func (*NewJobRequest) GetStlFiles

func (m *NewJobRequest) GetStlFiles() []*STLFile

func (*NewJobRequest) ProtoMessage

func (*NewJobRequest) ProtoMessage()

func (*NewJobRequest) Reset

func (m *NewJobRequest) Reset()

func (*NewJobRequest) String

func (m *NewJobRequest) String() string

type NewJobResponse

type NewJobResponse struct {
	SvxFile []byte `protobuf:"bytes,1,opt,name=svx_file,json=svxFile,proto3" json:"svx_file,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
}

NewJobResponse is the resulting SVX file from a job.

func (*NewJobResponse) Descriptor

func (*NewJobResponse) Descriptor() ([]byte, []int)

func (*NewJobResponse) GetError

func (m *NewJobResponse) GetError() string

func (*NewJobResponse) GetSvxFile

func (m *NewJobResponse) GetSvxFile() []byte

func (*NewJobResponse) ProtoMessage

func (*NewJobResponse) ProtoMessage()

func (*NewJobResponse) Reset

func (m *NewJobResponse) Reset()

func (*NewJobResponse) String

func (m *NewJobResponse) String() string

type RegisterAgentRequest

type RegisterAgentRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

RegisterAgentRequest is sent from each agent to the master.

func (*RegisterAgentRequest) Descriptor

func (*RegisterAgentRequest) Descriptor() ([]byte, []int)

func (*RegisterAgentRequest) GetAddress

func (m *RegisterAgentRequest) GetAddress() string

func (*RegisterAgentRequest) ProtoMessage

func (*RegisterAgentRequest) ProtoMessage()

func (*RegisterAgentRequest) Reset

func (m *RegisterAgentRequest) Reset()

func (*RegisterAgentRequest) String

func (m *RegisterAgentRequest) String() string

type RegisterAgentResponse

type RegisterAgentResponse struct {
}

RegisterAgentResponse is the reply from the master to the agent.

func (*RegisterAgentResponse) Descriptor

func (*RegisterAgentResponse) Descriptor() ([]byte, []int)

func (*RegisterAgentResponse) ProtoMessage

func (*RegisterAgentResponse) ProtoMessage()

func (*RegisterAgentResponse) Reset

func (m *RegisterAgentResponse) Reset()

func (*RegisterAgentResponse) String

func (m *RegisterAgentResponse) String() string

type STLFile

type STLFile struct {
	Triangles []*Triangle `protobuf:"bytes,1,rep,name=triangles" json:"triangles,omitempty"`
}

STLFile contains the data in an STL file.

func (*STLFile) Descriptor

func (*STLFile) Descriptor() ([]byte, []int)

func (*STLFile) GetTriangles

func (m *STLFile) GetTriangles() []*Triangle

func (*STLFile) ProtoMessage

func (*STLFile) ProtoMessage()

func (*STLFile) Reset

func (m *STLFile) Reset()

func (*STLFile) String

func (m *STLFile) String() string

type SliceJobRequest

type SliceJobRequest struct {
	NewJobRequest *NewJobRequest `protobuf:"bytes,1,opt,name=new_job_request,json=newJobRequest" json:"new_job_request,omitempty"`
	Z             int64          `protobuf:"varint,2,opt,name=z" json:"z,omitempty"`
}

SliceJobRequests represents an entire job slice to be performed.

func (*SliceJobRequest) Descriptor

func (*SliceJobRequest) Descriptor() ([]byte, []int)

func (*SliceJobRequest) GetNewJobRequest

func (m *SliceJobRequest) GetNewJobRequest() *NewJobRequest

func (*SliceJobRequest) GetZ

func (m *SliceJobRequest) GetZ() int64

func (*SliceJobRequest) ProtoMessage

func (*SliceJobRequest) ProtoMessage()

func (*SliceJobRequest) Reset

func (m *SliceJobRequest) Reset()

func (*SliceJobRequest) String

func (m *SliceJobRequest) String() string

type SliceJobResponse

type SliceJobResponse struct {
	PngFile []byte `protobuf:"bytes,1,opt,name=png_file,json=pngFile,proto3" json:"png_file,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
}

SliceJobResponse is the resulting PNG file from a job slice.

func (*SliceJobResponse) Descriptor

func (*SliceJobResponse) Descriptor() ([]byte, []int)

func (*SliceJobResponse) GetError

func (m *SliceJobResponse) GetError() string

func (*SliceJobResponse) GetPngFile

func (m *SliceJobResponse) GetPngFile() []byte

func (*SliceJobResponse) ProtoMessage

func (*SliceJobResponse) ProtoMessage()

func (*SliceJobResponse) Reset

func (m *SliceJobResponse) Reset()

func (*SliceJobResponse) String

func (m *SliceJobResponse) String() string

type Triangle

type Triangle struct {
	V1 *Vertex `protobuf:"bytes,1,opt,name=v1" json:"v1,omitempty"`
	V2 *Vertex `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"`
	V3 *Vertex `protobuf:"bytes,3,opt,name=v3" json:"v3,omitempty"`
}

Triangle is a 3-vertex triangle in the mesh.

func (*Triangle) Descriptor

func (*Triangle) Descriptor() ([]byte, []int)

func (*Triangle) GetV1

func (m *Triangle) GetV1() *Vertex

func (*Triangle) GetV2

func (m *Triangle) GetV2() *Vertex

func (*Triangle) GetV3

func (m *Triangle) GetV3() *Vertex

func (*Triangle) ProtoMessage

func (*Triangle) ProtoMessage()

func (*Triangle) Reset

func (m *Triangle) Reset()

func (*Triangle) String

func (m *Triangle) String() string

type Vertex

type Vertex struct {
	X float64 `protobuf:"fixed64,1,opt,name=x" json:"x,omitempty"`
	Y float64 `protobuf:"fixed64,2,opt,name=y" json:"y,omitempty"`
	Z float64 `protobuf:"fixed64,3,opt,name=z" json:"z,omitempty"`
}

Vertex is a 3D vertex.

func (*Vertex) Descriptor

func (*Vertex) Descriptor() ([]byte, []int)

func (*Vertex) GetX

func (m *Vertex) GetX() float64

func (*Vertex) GetY

func (m *Vertex) GetY() float64

func (*Vertex) GetZ

func (m *Vertex) GetZ() float64

func (*Vertex) ProtoMessage

func (*Vertex) ProtoMessage()

func (*Vertex) Reset

func (m *Vertex) Reset()

func (*Vertex) String

func (m *Vertex) String() string

Jump to

Keyboard shortcuts

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