![]() println( " \t1 - Opening input and output files") EOL " \tConverting XtrkCAD file " xtcFile " to JMRI Layout Editor format" EOL) println( EOL "XtrkCadReader " REVISION EOL EOL " \t" ( new java. * Constructor for a new file conversion instance. Static Parser optionVersion = new Parser( "-v", Parser. Static Parser optionHelp = new Parser( "help", Parser. Static Parser optionH = new Parser( "-h", Parser. Static Parser optionFile = new Parser( "", Parser. NUMBER, "Width of output frame (default " ( int) jmriMaxWidth " pixels)") Static Parser optionWidth = new Parser( "-x", Parser. NUMBER, "Height of output frame (default " ( int) jmriMaxHeight " pixels)") Static Parser optionHeight = new Parser( "-y", Parser. NUMBER, "Maximum chord length for arcs rendering (default " arcChord " pixels, minimum " MINCHORD ")") Static Parser optionChord = new Parser( "-c", Parser. OPTION, "Render arcs as polylines (required for JMRI versions prior to 2.8)") Static Parser optionArc = new Parser( "-a", Parser. NUMBER, "Tolerance for automatic merging of end points (default " tolerance " pixels)") Static Parser optionTolerance = new Parser( "-t", Parser. OPTION, "Ignore XtrkCAD hidden tracks settings") Static Parser optionHiddenIgnore = new Parser( "-hi", Parser. ![]() OPTION, "Render hidden tracks with dashed lines") Static Parser optionHiddenDash = new Parser( "-hd", Parser. NUMBER, "Starting ID number for anchor points (default " anchorIdent ")") Static Parser optionAnchors = new Parser( "-sa", Parser. NUMBER, "Starting ID number for track segments (default " trackIdent ")") Static Parser optionTracks = new Parser( "-ss", Parser. NUMBER, "Starting ID number for turnouts (default " turnoutIdent ")") Static Parser optionTurnouts = new Parser( "-st", Parser. NUMBER, "Starting ID number for crossings (default " xingIdent ")") Static Parser optionXings = new Parser( "-sx", Parser. NUMBER, "Starting ID number for bumper end points (default " bumperIdent ")") Static Parser optionBumpers = new Parser( "-se", Parser. NUMBER, "Starting ID number for turntables (default " turntableIdent ")") Static Parser optionTurntables = new Parser( "-stt", Parser. ![]() OPTION, "Enable automatic definition of blocks based on XtrkCAD block gaps.") Static Parser optionGBlocks = new Parser( "-bg", Parser. OPTION, "Enable automatic definition of blocks based on turnouts.") Static Parser optionTBlocks = new Parser( "-bt", Parser. NUMBER, "Maximum range for inclusion of turnouts in the same block - see documentation (default " maxRange ")") Static Parser optionRBlocks = new Parser( "-br", Parser. OPTION, "Assign block numbers also to level crossings.") Static Parser optionXBlocks = new Parser( "-bx", Parser. OPTION, "Obtain block names from track descriptions.") ![]() Static Parser optionNBlocks = new Parser( "-bn", Parser. OPTION, "Add sensor names to blocks.") // Version 1.3 Static Parser optionSBlocks = new Parser( "-bs", Parser. NUMBER, "Starting ID number for blocks (default " startBlock ")") Static Parser optionBlocks = new Parser( "-sb", Parser. Static final String HELPDESCRIPTION = EOL "XtrkCadReader" EOL "Converts XtrkCAD files (.xtc) to JMRI Layout Edit format." EOL " \tRevision " REVISION Highest ID number contained in the XtrkCAD file Static int gapMask = 0 // Bitmask of block detection method ![]() Static boolean setBlockSensors = false // Add sensor names to blocks Version 1.3 Static boolean getBlockNames = false // Get block names from track descriptions Static boolean enableBlockXing = false // Assign block numbers also to level crossings Static boolean enableBlockGaps = false // Enable automatic definition of blocks based on XtrkCAD block gaps Static boolean enableBlockTurnouts = false // Enable automatic definition of blocks based on turnouts Static double maxRange = 2.0 // Maximum distance between turnouts in the same group Static boolean hiddenDash = false // Render hidden tracks with dashed lines Static boolean hiddenIgnore = false // Ignore XtrkCAD hidden tracks settings Static int mainLineLayer = - 1 // Layer number associated with mainline tracks (-1 = undefined) Static ArrayList blockNames = new ArrayList() Static ArrayList tracks = new ArrayList() Static int nAnchors = 0 // Anchors counter If the distance between two unconnected end points Tolerance for automatic merging of unconnected end points. Minimum and maximum chord length used for arcs rendering Static boolean enableArcRendering = false Is arcs rendering enabled? Version 1.4 Static final String XMLFOOTER1 = " \t" EOL * 2008-Jul-03 GT - Stripped XML characters (
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |