Click here to Skip to main content
15,914,074 members
Home / Discussions / C#
   

C#

 
QuestionHow To Cnvert Turbo c++ Serial Port To c#2.0 Pin
mohsen haghighi28-Aug-07 12:14
mohsen haghighi28-Aug-07 12:14 
AnswerRe: How To Cnvert Turbo c++ Serial Port To c#2.0 Pin
Spacix One28-Aug-07 14:23
Spacix One28-Aug-07 14:23 
Questionhosting windows applications in a winform Pin
algoaddict28-Aug-07 12:07
algoaddict28-Aug-07 12:07 
AnswerRe: hosting windows applications in a winform Pin
Spacix One28-Aug-07 14:13
Spacix One28-Aug-07 14:13 
QuestionRe: hosting windows applications in a winform Pin
algoaddict28-Aug-07 15:37
algoaddict28-Aug-07 15:37 
AnswerRe: hosting windows applications in a winform Pin
Spacix One29-Aug-07 5:04
Spacix One29-Aug-07 5:04 
AnswerRe: hosting windows applications in a winform Pin
Dave Kreskowiak29-Aug-07 5:14
mveDave Kreskowiak29-Aug-07 5:14 
Questionc# class design help Pin
rsaint2728-Aug-07 11:28
rsaint2728-Aug-07 11:28 
Hello,

I'm building a base class to hold information taken from a robot movement file.
This means I have several lines, each with a set of points, and sometimes commands, between the points. Each point has some data (coordinates, orientation, zone, speed, work object, and a few more).

I'm using Eran Kampf's Sharp3D math library.

I would like a sugestion on how to implement the base class.
So far, I've done the following:

using Sharp3D.Math.Core
using Sharp3D.Math.Geometry3D

namespace ModelClass
{
#region Class constants

public enum Linetypes
{
undefined = -1,
laser = 0,
water = 1,
glue = 2,
primer = 3,
rough = 4
}
public enum Polysides
{
undefined = -5,
none = -1,
right = 0,
left = 1
}

#endregion


public class Point7D
{
// Represents a point in 3D space
Vector3F vector;
// Represents the quaternion of vector associated with point
QuaternionD quaternion;
// Point name descriptor
string name;
}
(...)

public class RobotPoint : Point7D
{
#region Constants

public enum zones
{
undefined,
fine,
z0,
z1,
z5
}
public enum speeds
{
undefined,
v5,
v10,
v100,
v1000
}
const string ActiveTool = "ActiveTool";
const string AuxPointData = "[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]";

#endregion

#region Internal fields

// Workplace definition
string workplace;
// Tool defined for the point
string tool;
// Zone definition
zones zone;
// Speed definition
speeds speed;

#endregion
}

public class PolyLine7D
{
#region Internal Fields

List<RobotPoint> pointList;
string name;
Linetypes type;
Polysides polyside;

#endregion
}

public class Model
{
#region Internal Fields

List<PolyLine7D> _ModelPolylines;
string _ModelFileName;

#endregion
}
}

Should the class PolyLine implement itself a static method for creating a list, instead of having the Model class do it?
Same question for the Model class if I want to have more than one file opened at the same time? In such case, I would create a Hashtable, with the _ModelFileName as a key.

Thanks for any help you can give me.
QuestionREGEX start and end Pin
Saamir28-Aug-07 11:25
Saamir28-Aug-07 11:25 
AnswerRe: REGEX start and end Pin
PIEBALDconsult28-Aug-07 11:41
mvePIEBALDconsult28-Aug-07 11:41 
GeneralRe: REGEX start and end Pin
Spacix One28-Aug-07 11:43
Spacix One28-Aug-07 11:43 
AnswerRe: REGEX start and end Pin
Joshua Lunsford4-Sep-07 10:04
Joshua Lunsford4-Sep-07 10:04 
Questionsearching an XML file [modified] Pin
jacobparker28-Aug-07 10:14
jacobparker28-Aug-07 10:14 
AnswerRe: searching an XML file Pin
Spacix One28-Aug-07 10:38
Spacix One28-Aug-07 10:38 
GeneralRe: searching an XML file Pin
jacobparker28-Aug-07 12:30
jacobparker28-Aug-07 12:30 
GeneralRe: searching an XML file Pin
Spacix One28-Aug-07 14:04
Spacix One28-Aug-07 14:04 
GeneralRe: searching an XML file Pin
Christian Graus28-Aug-07 16:12
protectorChristian Graus28-Aug-07 16:12 
GeneralRe: searching an XML file Pin
Spacix One29-Aug-07 5:13
Spacix One29-Aug-07 5:13 
GeneralRe: searching an XML file Pin
jacobparker30-Aug-07 4:54
jacobparker30-Aug-07 4:54 
GeneralRe: searching an XML file Pin
Spacix One30-Aug-07 5:10
Spacix One30-Aug-07 5:10 
Questionform control text value & XML Pin
Blubbo28-Aug-07 9:30
Blubbo28-Aug-07 9:30 
QuestionScaling a Polygon Pin
Joshua Lunsford28-Aug-07 9:26
Joshua Lunsford28-Aug-07 9:26 
AnswerRe: Scaling a Polygon Pin
Hessam Jalali28-Aug-07 21:56
Hessam Jalali28-Aug-07 21:56 
GeneralRe: Scaling a Polygon Pin
Joshua Lunsford4-Sep-07 10:01
Joshua Lunsford4-Sep-07 10:01 
GeneralRe: Scaling a Polygon Pin
Lewis Liu L8-Sep-09 13:56
Lewis Liu L8-Sep-09 13:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.