Generate DXF drawing in Java - java

Is there some sort of a good library with documentation to perform the drawings? Something like DWG or DXF files. I need to generate some drawings on the basis of these data. They will be used mainly lines, and dimensioning drawings. You do not necessarily have to be a DWG or DXF. Important for me to do the drawings. Something like that

Try this CAD java jar package, called Ycad, right now just support DXF drawing...
Download here

Related

Display dicom or raw images in 3D

I was wondering what tool can I use to make a single slice (image) into 3D. I can open dicom and raw images in my program but I want to display these images in 3D (just a single image rather than the whole stack). I used some of ImageJ files to open images but I don't like how ImageJ displays the stack in 3D and it doesn't really display a single image in 3d. My program is coded in java and I would like a tool that can be easily integrated into eclipse Kepler. I have found many tools like jogl, java 3d, java 3d workbench, vtk, etc. but I don't know which one to use or are there any other programs that are easier to use or integrate into the system.
EDIT:
I want to do something like this... http://www.welfenlab.de/fileadmin/forschung/gebiete/YaDiV/2008_07_18_Screenshot_YaDiV_1.png
There's a library called ImageJ which can be used to create three-dimensional models from two-dimensional slices. I haven't personally used it, but it looks like it should do the trick.
have you looked at XTK? in particular, lesson 17 seems to be exactly what you are looking for. it is in Javascript, so to integrate into your Java application, you should be able to use one of the many Java/Javascript bridges out there.

Manipulate PDF using Java

I wanted to ask how can we proceed about manipulating a PDF file using Java. I am familiar with the structure of a PDF file (how its objects are arranged etc.). I would like to know how to proceed from scratch. By scratch I mean I don't want to use the freely available API's and libraries available, I want to strip a PDF down to its constituent objects.
Don;t try to reinvent the wheel.
There is already excellent work done here

MP4 container writer in Java

I would like to find a FREE MP4 (container) writer for Java. I do not need an encoder, only something which can write the correct atoms given their expected values. Bonus for such a library that also can write "valid" F4V.
I would prefer a pure Java solution rather than something using JNI or external executables.
Even though my answer comes very late you could have a look into my MP4 Parser/Unparser at Github. You can parse MP4 files, modify them and write the result. You can even start from scratch creating boxes programatically and write your object representation to some sink.
You can have a look at JCodec ( http://jcodec.org ). It contains an MP4 library and MP4 demuxer and muxer.
May be you are looking for something like StreamBaby.
Can't vouch for it, but red5 is an open source flash server written in Java, which claims support for streaming mp4 and has implementations of mp4 IO objects which may be able to create said format.
Also, IBM created their Toolkit For MPEG-4 a while back and though it's not free, it might help.
FFMPEG's java bindings?
http://fobs.sourceforge.net/f4jmf_first.html
Or simpler a JNA proxy over some C++ MP4 library.
I have implemented a QuickTimeWriter class which can write a QuickTime container in pure Java.
As far as I know, the QuickTime file format is structurally equivalent to MPEG-4 Part 14. There are only a few minor differences in the fields inside atoms/boxes.
So, with an MPEG-4 spec on your lap, and a few hours of work, you should be good.
The Java I've seen which modifies MP4 files would invoke Nero AAC Codec externally (a Windows native .exe which Nero does not supply the source for) to modify AAC files (which are Apple's audio-only MP4 files). It works for audio only, not to video.

Is there a pure java library for converting DXF to PNG?

Need to convert DXF files to PNG. Found a library called kabeja -- http://kabeja.sourceforge.net/
The conversion however is limited. It does not work with fill patterns. Any better tools?
There is this java app: http://www.escape.de/~quincunx/dxfviewer/
You could mail the guy asking for the source and modify it to your needs.

How to print DWG file from Java

How do I print a .dwg file from Java?
Is there is an API for accessing and passing the DWG AutoCAD file to the printer for printing?
Dwglib is a Java library for accesing DWG files. It is essentially a port from the Pythoncad DWG reading classes by Art Haas. jdwglib manages complex DWG objects allowing users to employ these objects directly in their applications.
You'll to find an API that allows you to read an AutoCAD dwg file. I haven't seen any Java ones, but you might be able to start from the .NET one following:
http://code.google.com/p/tf-net/wiki/DwgReaderWriter
Once you've found an API, then it might be as simple as printing whatever you render.

Categories

Resources