vrmlpad21.docx
《vrmlpad21.docx》由会员分享,可在线阅读,更多相关《vrmlpad21.docx(72页珍藏版)》请在冰点文库上搜索。
vrmlpad21
VrmlPadv.2.1
User’sGuide
Copyright©1999-2004ParallelGraphics
Contents
Overview1
AboutVrmlPad1
ProductFeatures1
NewFeaturesinVrmlPad2.12
NewFeaturesinVrmlPad2.03
AvailableAdd-ins4
MaterialEditor4
FindinFiles4
Fieldsvalidationmacro4
Samplemacros5
ExtrusionEditor5
AboutVRML6
DesignCriteria6
CharacteristicsofVRML6
Scope6
IntroductiontotheVrmlPadAutomation7
TextEditor9
Overview:
TextEditor9
SyntaxColoring9
AutoComplete10
ErrorProcessing11
NodeFolding12
Nodethumbnails13
FindingText14
RegularExpressions15
FileNavigation16
WorkingwithWorkspace17
UsingDrag-and-DropEditing18
EditorCommandsandKeystrokes18
SceneTree21
Overview:
SceneTree21
SceneTreeNavigation22
Moving,Copying,andCloningNodeswithintheSceneTree22
NamingNodesintheSceneTree23
RoutingMap25
Overview:
RoutingMap25
ManagingRoutes25
ResourceView27
Overview:
ResourceView27
ManagingResources27
UsingDrag-and-DropintheResourceView28
FileList30
Overview:
FileList30
UsingDrag-and-DropintheFileList30
ScriptDebugger32
Overview:
ScriptDebugger32
EditTime,RunTime,andBreakMode32
Debuggercommands34
Debuggerwindows36
SpreadsheetFields37
ViewingtheValueofaVariable37
ModifyingtheValueofaVariable38
PublishingWizard40
TheBasicsofPublishing40
SettingUptheDestination40
ChoosingAdditionalResourceDirectories40
ExcludingFilesfromPublishing41
VRMLOptimizationOptions41
SpecifyingDirectoryOrganization42
ReviewingtheDirectoryStructure42
PreviewingPublishedDocuments42
HintsandTips43
HowtocompressaVRMLfile43
HowtodownloadaVRMLfilefromtheNet.43
HowtouploadaVRMLfiletoaremoteserver.44
Howtoquicklyfindthedefinition(reference)ofanidentifier.44
HowtoinsertapairofnodeorPROTObraces.45
Howtoinsertdefaultfieldvalue.45
Howtoindentablockoflines.45
Howtocommentablockoflinesoranentirenode.45
Howtolocateasyntaxorsemanticerror.46
HowtomakeaVRMLfilesmaller.46
HowtoexposeafieldtoaPROTOinterface.46
HowtoregisteraVRMLextension.47
Howtochangeasetofthestandardnodes.47
HowtochangeasourceoftheNodeHelp.48
WhatarethewaysIcanaccesstheVrmlPadobjectmodel?
48
HowtoautomateVrmlPadfromanotherapplication.49
Overview
AboutVrmlPad
VrmlPadisapowerfulandflexibleauthoringtoolfromParallelGraphicsthatallowsyoutodesignanddevelopprofessionalVRMLcontent.
UseVrmlPadtocreateVRMLworldsforpublishingontheWorldWideWeb.VrmlPadfullysupportstheVRML97specification.
ProductFeatures
Editing–Accesstolocalandremotefiles,multipleundo/redo,setbookmarks,advancedfindandreplace,syntaxtips,smartAutoComplete,autoindent,dynamicnodefolding,customizablekeyboardshortcuts.
Enhancedcolor-coding–CustomizablebyVRMLkeywords,fieldandnodecategories.
Dynamicerrorsdetecting–Viewandenumeratesyntaxandwiderangeofsemanticerrorsandwarnings–undefinedidentifiers,nonmatchedfields,duplicatednodedefinitionsandmore.
DocumentTabs–Openandeditmultipledocuments.Findandreplaceinallopeneddocuments.Documentlistincludesalsofiledependenciesoftheactivedocument.
SceneTree–View,editandnavigatehierarchicalscenestructure.Synchronizeselectioninbothdirections.Delete,commentandrenamenodes,PROTOsandfielddeclarations.
RoutingMap–Viewandeditsceneroutes.Synchronizeselectioninbothdirections.Delete,commentandaddnewroutesusingStart RouteandAdd Routecommands.
ResourceView–View,editandnavigatedocumentdependencies.Renameandbrowseallreferencestoaresource.Convert,whenpossible,absolutereferencestorelativeandviceversa.
Preview–PreviewscenesininstalledbrowsersandVRMLviewers.PreviewindividualnodesusingtheNodePreviewcommand.
PublishingWizard–(notshownonthefigure)OrganizeandoptimizeyourscenewithdependenciesforpublishingontheNetandputthefilesonyourWebserverorsenditbye-mail.
AutomationandScripting–(notshownonthefigure)ManipulatetheprogramfromexternalapplicationsusingtheC,C++,VisualBasic®,BorlandDelphi®.Createadd-ins,VBScriptandJavaScriptmacrosandexecutethemfromwithintheVrmlPadenvironment,automatingcustomtasks.
VrmlScriptDebugger–LocatebugsinyourvrmlscriptdriveninteractiveVRMLscenesusingtheintegratedscriptdebugger.
ThedebuggerinterfaceprovideswrapperfortheCortonaVRMLclient,specialmenus,windows,dialogboxes,andspreadsheetfields.Drag-and-dropfunctionalityisavailableformovingdebuginformationbetweencomponents.Occasionallythedebuggerispausedinbreakmode,meaningthedebuggeriswaitingforuserinputaftercompletingadebuggingcommand(likebreakatbreakpoint,stepinto/over/out/tocursor,breakafterBreakcommandorRestart).
NodeThumbnails-PreviewindividualnodesinthesceneattherightofTexteditorassoonyoutype.PreviewselectednodesinadefaultVRML-viewer.
NewFeaturesinVrmlPad2.1
Previewindividualnodes
Inadditiontopreviewingawholescene,nowyoucanpreviewanyindividualnodeinit.Thisnode(aswellasitsdescendantnodes,ifany)willbeopenedinadefaultVRML-viewer.Topreviewanode,positionthecaretinsidethetextofthenodeandchooseNodePreviewcommandfromToolsmenu.
Nodethumbnails
Nodethumbnailsaresmallrenderedpicturesofindividualnodesinthescene.ThesepicturesappeartotherightoftheTexteditorassoonyoutypeinthetextofthecorrespondingnodes.
Toenablenodethumbnails,chooseOptionsfromToolsmenu,clickEditortabtoopenthecorrespondingpage,andselectRendernodethumbnails.
Workingwithworkspace
NowyoucansavethecurrentVrmlPadworkspace,includingtheplacementofallopenfiles,theircaretpositions,bookmarks,foldsettingsanddebugbreakpoints.ChooseFile>Workspace>Saveandspecifythenamefortheworkspacetobesaved.ThelatestsavedworkspacewillbeopenedautomaticallywhenyourestartVrmlPad.Touseadifferentworkspace,chooseitintheOpenWorkspacedialog(File>Workspace>Open),workspacefileshavethe.vwsextension.
NewFeaturesinVrmlPad2.0
IntegratedScriptDebugger
Nowyoucanusedebuggingfeaturesthatarecollectivelyreferredtoasintegratedscriptdebugger.ThesefeaturesletyoufindandfixerrorsintheinlinevrmlscriptcodeinyourVRMLscenesandonHTMLpageswithembeddedCortonacontrols.Theintegratedscriptdebuggerisafull-featureddebuggerthatenablesyouto:
∙Controltheexecutionofyourscript,includingpausingtheexecution;runningtoacursor,orabreakpointlocation;steppingthroughcode.
∙Monitorthestateofscriptdata,includingthecurrentcallstack;variables,arrays,andobjectsthatareavailableinthecurrentcontext;evaluateexpressions,containingthesedataitems.
∙Modifythevaluesofvariables,arrays,andobjectsinyourscriptduringadebuggingsession.
∙Addnewprocedurestoyourscriptduringadebuggingsessionasyouwouldincode.
∙ExamineandmodifyontheflydataitemsinthescriptusingtheQuickwatchwindow.
∙UseCodeTipsforquickviewingofvariablesvaluesinthescript.
∙ExaminefullVRMLtextofruntimenodescorrespondstovalueofanexpression.
Fieldsvalidationmacro
ThemacrovalidatesconformanceoffieldvaluestotheVRML97specification.Someofabout100checksperformedbythemacro:
verifiesnodefieldscontaincorrecttypeofnodeorPROTO;increasinginterpolatorskeyvalues,ratioofkeytokeyValueentries;correctrelationshipbetweencoord/coordIndex,texCoord/texCoordIndex,color/colorIndex,normal/normalIndex;Colorvaluesbeinginrange0to1andmore.
SearchInFilesadd-in
TheFindinFileswindowenablesyoutoperformadvancedtextsearchinmultipleVRMLfilesatime(includingcompressedfiles).Literaltextstringsorregularexpressionstofindwordsorcharacterscanbeusedinthiscommand.
AvailableAdd-ins
MaterialEditor
TheMaterialEditorletsyoucreateandeditAppearanceandMaterialnodes.Youalsocanchooseexistingmaterialsfromapre-builtlibraryandaddyourownmaterialstoit.
FindinFiles
TheFindinFilesaddinenablesyoutoperformadvancedtextsearchinmultipleVRMLfilesatime(includingcompressedfiles).Literaltextstringsorregularexpressionstofindwordsorcharacterscanbeusedinthiscommand.
Tofindatextstringinmultiplesourcefiles:
1.FromtheToolsmenu,chooseFindinFiles.
2.IntheFindwhatbox,typethesearchtextoraregularexpression.
3.IntheInfolderbox,selectthefolderthatyouwanttosearch.
4.Ifnecessary,selectoneormoreoftheFindoptions.
5.ClicktheFindbuttontobeginthesearch.
6.Toopenafilecontainingamatch,double-clicktheentryinthelistbelow.
Fieldsvalidationmacro
TheFieldsValidationmacrochecksscenesforconformanceofvariousfieldvaluestotheVRML97specification.Amongofabout100testsperformedbythemacroarechecksfor:
thefieldtypecompatibility(fieldsshouldcontainnodesorPROTOsofcorrecttype);increasinginterpolatorskeyvalues;ratioofkeytokeyValueentries;relationshipbetweencoord/coordIndex,texCoord/texCoordIndex,color/colorIndex,normal/normalIndexvalues;Colorvaluesbeinginrange0to1;etc.
Tovalidatefields:
∙FromtheToolsmenu,chooseValidateFields.
Samplemacros
SamplemacrosincludeusefulcommandsforenumeratingfacesinIndexedFaceSetnodes,completingselectednodeswithallfields,andconvertingtheBox,ConeandCylindernodestoanIndexedFaceSetetc.
MacroDe